aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-03-20 03:28:45 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-03-20 03:28:45 +0000
commit97e1e35a2afe6e406b493fb74b693228939e82d6 (patch)
treec1e64c0089ff0df58390d9d99fe823bf5d0fe1ba
parentba9246441375a614630df2c44ff672f79ce11332 (diff)
""
svn path=/trunk/; revision=1443
-rw-r--r--externals/grill/py/source/py.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp
index e9e7040d..e7524ce1 100644
--- a/externals/grill/py/source/py.cpp
+++ b/externals/grill/py/source/py.cpp
@@ -121,6 +121,19 @@ pyobj::pyobj(I argc,const t_atom *argv):
// set script path
AddToPath(dir);
+#if FLEXT_SYS == FLEXT_SYS_PD
+ // add dir of current patch to path
+ AddToPath(GetString(canvas_getdir(thisCanvas())));
+ // add current dir to path
+ AddToPath(GetString(canvas_getcurrentdir()));
+#elif FLEXT_SYS == FLEXT_SYS_MAX
+ short path = patcher_myvol(thisCanvas());
+ path_topathname(path,NULL,dir);
+ AddToPath(dir);
+#else
+ #pragma message("Adding current dir to path is not implemented")
+#endif
+
ImportModule(GetString(argv[0]));
}
}