diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-11 11:35:46 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-11 11:36:49 +0400 |
commit | b7b4f94e782f7e74c5acf0af19dfda07fdd92568 (patch) | |
tree | 700bcf546c6a40c01998a07ed7fa60e8bb53e8eb /source/blender/freestyle/intern/system/PythonInterpreter.cpp | |
parent | 52a5d58045ae2cc3eccbb936e87054eeb75967e2 (diff) |
Fix for Freestyle Python API modules not found in the Python Console.
Addition of the path to the Freestyle Python API modules to 'sys.path' was delayed until
the first Freestyle rendering, so that any import attempt of the modules in the Python
Console always failed. Now the update of 'sys.path' is done at Blender start-up.
This allows the Freestyle-specific modules to be imported without running Freestyle,
facilitating quick interactive testing in the Console.
Diffstat (limited to 'source/blender/freestyle/intern/system/PythonInterpreter.cpp')
-rw-r--r-- | source/blender/freestyle/intern/system/PythonInterpreter.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.cpp b/source/blender/freestyle/intern/system/PythonInterpreter.cpp index 9e7ef39a0e4..852030e365b 100644 --- a/source/blender/freestyle/intern/system/PythonInterpreter.cpp +++ b/source/blender/freestyle/intern/system/PythonInterpreter.cpp @@ -26,10 +26,3 @@ */ #include "PythonInterpreter.h" - -namespace Freestyle { - -string PythonInterpreter::_path = ""; -bool PythonInterpreter::_initialized = false; - -} /* namespace Freestyle */ |