summaryrefslogtreecommitdiffstats
path: root/src/base/main/mainReal.c
diff options
context:
space:
mode:
authorBaruch Sterin <baruchs@gmail.com>2015-11-05 01:24:26 -0800
committerBaruch Sterin <baruchs@gmail.com>2015-11-05 01:24:26 -0800
commitc610c036616d0b06e9036c4d17be6168619a6332 (patch)
treed7229e7967e086585e7575ae9e3476d80d2e34ff /src/base/main/mainReal.c
parentaa62165a1cbd40740eb4ef5237d3a2259c40fb1d (diff)
downloadabc-c610c036616d0b06e9036c4d17be6168619a6332.tar.gz
abc-c610c036616d0b06e9036c4d17be6168619a6332.tar.bz2
abc-c610c036616d0b06e9036c4d17be6168619a6332.zip
pyabc: remove python integration from abc, it is moved to a separate extension
Diffstat (limited to 'src/base/main/mainReal.c')
-rw-r--r--src/base/main/mainReal.c33
1 files changed, 0 insertions, 33 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 )
{