mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge branch 'maint'
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
# instead of
|
||||
# >>> from gnucash.gnucash_core import thingy
|
||||
from gnucash.gnucash_core import *
|
||||
from . import app_utils
|
||||
## @file
|
||||
# @brief helper file for the importing of gnucash
|
||||
# @author Mark Jenkins, ParIT Worker Co-operative <mark@parit.ca>
|
||||
|
||||
@@ -4,13 +4,14 @@
|
||||
## @file
|
||||
# @brief High level python wrapper for app-utils
|
||||
# @ingroup python_bindings
|
||||
#
|
||||
# further functions in _sw_app_utils that have not been included:
|
||||
# _gnc_get_current_book is available through Session.get_book()
|
||||
# _gnc_get_current_root_account is available through Book.get_root_account()
|
||||
|
||||
|
||||
from gnucash import _sw_app_utils
|
||||
|
||||
def gnc_get_current_session():
|
||||
from gnucash import Session
|
||||
return Session(instance=_sw_app_utils.gnc_get_current_session())
|
||||
|
||||
# further functions in _sw_app_utils
|
||||
# _gnc_get_current_book is availabe through Session.get_book()
|
||||
# _gnc_get_current_root_account is available through Session.get_root_account()
|
||||
|
||||
Reference in New Issue
Block a user