[PD] Re: "py" and os.path
gr at grrrr.org
Sun Mar 27 22:22:55 CEST 2005
> I'm having fun with py and have a couple questions.
> #1 Does the precompiled py external include the python interpreter?
> As in does it not depend on python being installed on the system?
> If so what modules does it include?
The Python interpreter is not included - Python (2.1 upwards) must be
installed, which is the case in OSX and most if not all Linux
distributions. It's not standard on Windows, but there's a convenient
> #2 I can "import os" to get OS methods like os.dirlist. but when I try
> and "import os.path" py refuses to load the script. I need
> os.path.join that works on all OSs.
That's strange... i have no problem under OSX 10.3 with standard Python
installation (py cvs)
Could you try to load the following script with py:
print "Not even sys is working"
print "Import failed:",str(sys.exc_info())
More information about the Pd-list