diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/main/mainReal.c | 33 | ||||
-rw-r--r-- | src/base/main/mainUtils.c | 17 |
2 files changed, 0 insertions, 50 deletions
diff --git a/src/base/main/mainReal.c b/src/base/main/mainReal.c index a22a871a..a26cfa84 100644 --- a/src/base/main/mainReal.c +++ b/src/base/main/mainReal.c @@ -45,10 +45,6 @@ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. ***********************************************************************/ -#ifdef ABC_PYTHON_EMBED -#include <Python.h> -#endif /* ABC_PYTHON_EMBED */ - #include "base/abc/abc.h" #include "mainInt.h" #include "base/wlc/wlc.h" @@ -108,29 +104,6 @@ int Abc_RealMain( int argc, char * argv[] ) pAbc = Abc_FrameGetGlobalFrame(); pAbc->sBinary = argv[0]; -#ifdef ABC_PYTHON_EMBED - { - PyObject* pModule; - void init_pyabc(void); - - Py_SetProgramName(argv[0]); - Py_NoSiteFlag = 1; - Py_Initialize(); - - init_pyabc(); - - pModule = PyImport_ImportModule("pyabc"); - if (pModule) - { - Py_DECREF(pModule); - } - else - { - fprintf( pAbc->Err, "error: pyabc.py not found. PYTHONPATH may not be set properly.\n"); - } - } -#endif /* ABC_PYTHON_EMBED */ - // default options fBatch = INTERACTIVE; fInitSource = 1; @@ -354,12 +327,6 @@ int Abc_RealMain( int argc, char * argv[] ) } } -#ifdef ABC_PYTHON_EMBED - { - Py_Finalize(); - } -#endif /* ABC_PYTHON_EMBED */ - // if the memory should be freed, quit packages // if ( fStatus < 0 ) { diff --git a/src/base/main/mainUtils.c b/src/base/main/mainUtils.c index 30d1693c..c0145641 100644 --- a/src/base/main/mainUtils.c +++ b/src/base/main/mainUtils.c @@ -190,23 +190,6 @@ void Abc_UtilsSource( Abc_Frame_t * pAbc ) } #endif -#ifdef ABC_PYTHON_EMBED - if ( getenv("ABC_PYTHON_ABC_RC") ) - { - /* read script file from $ABC_PYTHON_ABC_RC */ - - char * sPath = getenv("ABC_PYTHON_ABC_RC"); - - if (sPath){ - char * sCmd = ABC_ALLOC(char, strlen(sPath) + 50); - (void) sprintf(sCmd, "source -s %s", sPath); - (void) Cmd_CommandExecute(pAbc, sCmd); - ABC_FREE(sCmd); - } - } - else -#endif /* #ifdef ABC_PYTHON_EMBED */ - { char * sPath1, * sPath2; char * home; |