After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720235 - Python bindings should load environment file just like gnucash does
Python bindings should load environment file just like gnucash does
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Python Bindings
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2013-12-11 07:59 UTC by Geert Janssens
Modified: 2018-06-29 23:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Geert Janssens 2013-12-11 07:59:23 UTC
At startup, gnucash sets a number of environment variables based on the contents of the environment configuration file found in <prefix>/etc/gnucash.

Some of these parameters are required to properly work when not installed in the linux default /usr environment. For example, the gsettings schemas are not found unless this environment file has been parsed.

The python bindings currently don't load these settings and hence run into the above issue.

That can easily be fixed by exposing the functions that parse the environment file to python and run those functions in the python initialization code.
Comment 1 Geert Janssens 2013-12-11 14:46:17 UTC
Committed as r23539.
Comment 2 John Ralls 2018-06-29 23:22:25 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=720235. Please update any external references or bookmarks.