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 (commit)
        from (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, which does indeed import _sw_app_utils
    I have made edits to (and other files) so it loads without
    errors with python 3. These edits are NOT tested. I dont actually use
    pycons, I update the to simply import my python subsystem init
    module. I never set the if False: to if True: to actually activate the

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

gnucash-patches mailing list
[hidden email]