Recently I've been looking at Povray, pyprocessing, and cfdg (version 3.0) as tools for creating digital images. I have branched two separate blogs where I mainly explore jruby + processing and processing.py

Sunday, 16 January 2011

Experimenting With Path in processing.py

I had a bit of difficulty in using libraries other than PeasyCam in processing.py, there appear to be several options for setting paths, this is one I will try:-

import sys

sys.path.append("/home/tux/sketchbook/libraries")

for p in sys.path:
    print p

Here is the result when run with processing.py

/home/tux
/home/tux/processing.py/libraries
/home/tux
/home/tux/processing.py/Lib
/home/tux/processing.py/processing-py.jar/Lib
__classpath__
__pyclasspath__/
/home/tux/sketchbook/libraries

Here is some more stuff I will need to wade through.

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Pembrokeshire, United Kingdom
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2