From 214bb7279f354adf1344376e26465046fc2581ce Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 11 Aug 2005 15:00:58 +0000 Subject: 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 --- externals/grill/py/source/py.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'externals/grill/py/source/py.cpp') 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; -- cgit v1.2.1