> On Jul 3, 2018, at 9:11 AM, David Osguthorpe <david.osgutho...@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
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel