From 1935d6d2c85b6660486ff7e39f65fdfa83017e47 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Fri, 8 May 2009 13:33:52 +0000 Subject: [PATCH] add note about preloading git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1375 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/dsm/mods/mod_py/ModPy.cpp | 1 - apps/dsm/mods/mod_py/Readme.mod_py.txt | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) 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, ...)