Permalink
Browse files

simpler

  • Loading branch information...
1 parent 8bbc09f commit 1acf22daf33c464aef3df592739c8e3fcd287c72 @jdf committed Oct 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 runtime/src/jycessing/Runner.java
@@ -280,7 +280,7 @@ public static void runSketch(final String[] args, final String sketchPath,
Py.getSystemState().path.insert(0, new PyString(sketchDir));
// For error messages
- interp.getLocals().__setitem__("__file__", new PyString(sketchPath));
+ interp.set("__file__", sketchPath);
interp.exec(read(Runner.class.getResourceAsStream("core.py")));
// Bind the sketch to a PApplet

0 comments on commit 1acf22d

Please sign in to comment.