Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
high level python wrappers for app-utils
- Loading branch information
1 parent
0d0fddc
commit e2c3735
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# app_utils.py -- High level python wrapper for app-utils | ||
# | ||
# @author Christoph Holtermann <mail@c-holtermann.net> | ||
## @file | ||
# @brief High level python wrapper for app-utils | ||
# @ingroup python_bindings | ||
|
||
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() |