6from gnucash
import Session, Account, SessionOpenMode
7from os.path
import abspath
8from gnucash.gnucash_core_c
import ACCT_TYPE_ASSET
10s = Session(
'sqlite3://%s' % abspath(
'test.blob'), SessionOpenMode.SESSION_NEW_STORE)
15root = book.get_root_account()
19a.SetType(ACCT_TYPE_ASSET)
21commod_table = book.get_table()
22a.SetCommodity( commod_table.lookup(
'CURRENCY',
'CAD') )