gnucash maint: Bug 796737 - Patch to restore gncmod-python.c.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gnucash maint: Bug 796737 - Patch to restore gncmod-python.c.

John Ralls-4
Updated via  https://github.com/Gnucash/gnucash/commit/4d013e09 (commit)
        from  https://github.com/Gnucash/gnucash/commit/ad7c14a5 (commit)



commit 4d013e091cc6890238b2c5bea2ef73b4aa37f931
Author: David Osguthorpe <[hidden email]>
Date:   Sat Jul 7 13:33:22 2018 -0700

    Bug 796737 - Patch to restore gncmod-python.c.
   
    Restores the gncmod-python module.
   
    It removes the need to link the module to libgncmod-app-utils.dylib or
    libgncmod-core-utils.dylib. This was needed previously as the init
    function for those modules was called in the c code. However, unless
    there was python c code at some point in gncmod-python.c to use
    functions in c of either core utils or app utils these are not needed.
    Those module init functions would be called when the modules are
    imported in eg init.py, which does indeed import _sw_app_utils
    successfully.
   
    I have made edits to init.py (and other files) so it loads without
    errors with python 3. These edits are NOT tested. I dont actually use
    pycons, I update the init.py to simply import my python subsystem init
    module. I never set the if False: to if True: to actually activate the
    console.



Summary of changes:
 gnucash/python/CMakeLists.txt    |  21 ++++++-
 gnucash/python/gncmod-python.c   | 133 +++++++++++++++++++++++++++++++++++++++
 gnucash/python/init.py           |   4 +-
 gnucash/python/pycons/console.py |  18 +++---
 gnucash/python/pycons/shell.py   |   4 +-
 po/POTFILES.in                   |   1 +
 6 files changed, 168 insertions(+), 13 deletions(-)
 create mode 100644 gnucash/python/gncmod-python.c

_______________________________________________
gnucash-patches mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-patches