aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/py.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-03-23 01:42:05 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-03-23 01:42:05 +0000
commit22eaba4518f85902489a35dbac0fd97654b59d43 (patch)
tree4b2ad06255e972b5fe1ddf813a1a2d8b135048a7 /externals/grill/py/source/py.cpp
parent246f98cb45a3e3e63eaf99dfed5a35bd1254ec13 (diff)
added message bundle functionality (pyext.Bundle class)
enable compiled-only scripts (without .py) small optimizations and fixes some optimizations and py reload fix better error message for reload with invalid args enable module packages (module/__init__.py[co]), now also for Max svn path=/trunk/; revision=4750
Diffstat (limited to 'externals/grill/py/source/py.cpp')
-rw-r--r--externals/grill/py/source/py.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp
index 3ef823a0..c773ffcb 100644
--- a/externals/grill/py/source/py.cpp
+++ b/externals/grill/py/source/py.cpp
@@ -156,12 +156,8 @@ pyobj::pyobj(int argc,const t_atom *argv)
*pt = 0;
}
- if(*modnm) {
- char dir[1024];
- GetModulePath(modnm,dir,sizeof(dir));
- AddToPath(dir);
+ if(*modnm)
ImportModule(modnm);
- }
else
ImportModule(NULL);
}
@@ -219,7 +215,8 @@ void pyobj::m_set(int argc,const t_atom *argv)
++argv,--argc;
if(sn) {
- if(!module || !strcmp(sn,PyModule_GetName(module))) {
+// if(!module || !strcmp(sn,PyModule_GetName(module)))
+ {
ImportModule(sn);
Register(GetRegistry(REGNAME));
}
@@ -244,7 +241,7 @@ void pyobj::m_set(int argc,const t_atom *argv)
void pyobj::m_help()
{
post("");
- post("%s %s - python script object, (C)2002-2005 Thomas Grill",thisName(),PY__VERSION);
+ post("%s %s - python script object, (C)2002-2006 Thomas Grill",thisName(),PY__VERSION);
#ifdef FLEXT_DEBUG
post("DEBUG VERSION, compiled on " __DATE__ " " __TIME__);
#endif