We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Processing 2, python & java, I'm getting undefined errors with these two functions. Are these Processing 3 only, if so, are there alternatives for Processing 2?
thanks.
Answers
At least in processing 2.2.1 they should work. How do you use them?
println(dataPath(""));
Does that line work for you?
OK, that works in Java, must have been sticky fingers on my part. In Python, though, I'm still getting a "NameError: global name 'dataPath' is not defined". Same for sketchPath()
Ok, i'm not that familiar with python-mode, but you could try something like this:
println(__papplet__.sketchPath(""))
Bing!
thanks very much indeed, that did the trick.
Thanks for reporting this. I've created https://github.com/jdf/Processing.py-Bugs/issues/138 to track it, and will fix it soon.
Feel free to report other problems in Python Mode at https://github.com/jdf/Processing.py-Bugs/issues/new.