diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-08-11 15:00:58 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-08-11 15:00:58 +0000 |
commit | 214bb7279f354adf1344376e26465046fc2581ce (patch) | |
tree | 0e0f32a27f274e4d6a09352146c7507472313dc5 /externals/grill/py/source/py.cpp | |
parent | e1be380510a42f13ce1fd55a29705aaf9e8c8da8 (diff) |
oops, include libraries for editing the scripts
some optimizations and py reload fix
open editor for module file on "edit" message (or click)
open editor for script under OS X
added cygwin support
svn path=/trunk/; revision=3417
Diffstat (limited to 'externals/grill/py/source/py.cpp')
-rw-r--r-- | externals/grill/py/source/py.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp index c7111faa..3ef823a0 100644 --- a/externals/grill/py/source/py.cpp +++ b/externals/grill/py/source/py.cpp @@ -154,12 +154,6 @@ pyobj::pyobj(int argc,const t_atom *argv) if(pt && *pt) { funnm = MakeSymbol(pt+1); *pt = 0; - -#if 0 - if(!*modnm) - // if module name is empty set it to __builtin__ - strcpy(modnm,"__builtin__"); -#endif } if(*modnm) { @@ -337,7 +331,8 @@ void pyobj::Load() void pyobj::Unload() { - SetFunction(NULL); +// SetFunction(NULL); + function = NULL; // just clear the PyObject, not the function name } void pyobj::callpy(PyObject *fun,PyObject *args) @@ -354,7 +349,7 @@ bool pyobj::CbMethodResort(int n,const t_symbol *s,int argc,const t_atom *argv) if(n == 0 && s != sym_bang) return flext_base::CbMethodResort(n,s,argc,argv); - PyThreadState *state = PyLock(); + PyThreadState *state = PyLockSys(); bool ret = false; |