[GNC-dev] Removing gncmod-python.c in commit 4ecd9c2dd41ae75ec4e82a662a241543fc075c01

John Ralls jralls at ceridwen.us
Tue Jul 3 13:21:35 EDT 2018



> On Jul 3, 2018, at 9:11 AM, David Osguthorpe <david.osguthorpe at gmail.com> wrote:
> 
> Hi,
> 
> Would a patch to restore gncmod-python.c be accepted for inclusion.
> 
> I have been using this to load a python subsystem into gnucash for a
> number of years.
> 
> I know it cant be restored as was but I have a small patch to it which
> removes the calls to the init of the _sw_core_utils and _sw_app_utils
> modules in the code (which dont appear to be used directly in
> gncmod-python.c). This means gncmod-python.dylib simply links to
> gnc-core-utils and no need for gnc-core-utils-python
> gncmod-app-utils-python.
> 
> With this patch - and some python 3 fixups to init.py the init.py has
> no errors on loading.
> 
> Note that gncmod-python.c was only place the init.py script was used.

David,

So there actually is someone using that! Sure, go ahead.

The _sw_core_utils and _sw_app_utils calls would have been to make those modules' API available for import into the python console, but it might be cleaner if the python console could import the python bindings instead.

Please also remove the files in pycons that aren't needed and don't work with Gtk3 (pycons in particular is using pygtk and pypango instead of pygobject).

Regards,
John Ralls



More information about the gnucash-devel mailing list