Author: sayer
Date: 2009-05-08 15:33:52 +0200 (Fri, 08 May 2009)
New Revision: 1375

Modified:
   trunk/apps/dsm/mods/mod_py/ModPy.cpp
   trunk/apps/dsm/mods/mod_py/Readme.mod_py.txt
Log:
add note about preloading

Modified: trunk/apps/dsm/mods/mod_py/ModPy.cpp
===================================================================
--- trunk/apps/dsm/mods/mod_py/ModPy.cpp        2009-05-08 13:26:05 UTC (rev 
1374)
+++ trunk/apps/dsm/mods/mod_py/ModPy.cpp        2009-05-08 13:33:52 UTC (rev 
1375)
@@ -84,7 +84,6 @@
 
   PyEval_ReleaseLock();
   return 0;
-//   _thr_state = PyEval_SaveThread();
 }
 
 DSMAction* SCPyModule::getAction(const string& from_str) {

Modified: trunk/apps/dsm/mods/mod_py/Readme.mod_py.txt
===================================================================
--- trunk/apps/dsm/mods/mod_py/Readme.mod_py.txt        2009-05-08 13:26:05 UTC 
(rev 1374)
+++ trunk/apps/dsm/mods/mod_py/Readme.mod_py.txt        2009-05-08 13:33:52 UTC 
(rev 1375)
@@ -23,6 +23,10 @@
 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, ...)

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to