diff --git a/apps/dsm/mods/mod_py/ModPy.cpp b/apps/dsm/mods/mod_py/ModPy.cpp index 3a57eab0..7ed3c0ae 100644 --- a/apps/dsm/mods/mod_py/ModPy.cpp +++ b/apps/dsm/mods/mod_py/ModPy.cpp @@ -84,7 +84,6 @@ int SCPyModule::preload() { PyEval_ReleaseLock(); return 0; -// _thr_state = PyEval_SaveThread(); } DSMAction* SCPyModule::getAction(const string& from_str) { diff --git a/apps/dsm/mods/mod_py/Readme.mod_py.txt b/apps/dsm/mods/mod_py/Readme.mod_py.txt index 7a08dc3c..5ecb1bcc 100644 --- a/apps/dsm/mods/mod_py/Readme.mod_py.txt +++ b/apps/dsm/mods/mod_py/Readme.mod_py.txt @@ -23,6 +23,10 @@ Indentation is a little ugly with multi-line py() actions. But this is Python's fault (in 21st century, who creates a programming language with fixed indentation?). +mod_py MUST be preloaded, to initialize the python interpreter. +add preload=mod_py to dsm.conf. + + locals ====== type - event type (dsm.Timer, dsm.Key, ...)