diff options
Diffstat (limited to 'source/blender/freestyle/intern/system/PythonInterpreter.h')
-rwxr-xr-x | source/blender/freestyle/intern/system/PythonInterpreter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h index e04e1d9b9d1..bf1a5064d3e 100755 --- a/source/blender/freestyle/intern/system/PythonInterpreter.h +++ b/source/blender/freestyle/intern/system/PythonInterpreter.h @@ -51,9 +51,9 @@ class LIB_SYSTEM_EXPORT PythonInterpreter : public Interpreter { public: - PythonInterpreter(bContext* C) { + PythonInterpreter() { _language = "Python"; - _context = C; + _context = 0; //Py_Initialize(); } @@ -61,6 +61,10 @@ class LIB_SYSTEM_EXPORT PythonInterpreter : public Interpreter //Py_Finalize(); } + void setContext(bContext *C) { + _context = C; + } + int interpretFile(const string& filename) { initPath(); |