PDA

View Full Version : os.path.join?



Randolph
11-08-2010, 08:55 PM
This is present on Windows and absent on Mac. In fact, the whole "os" module is absent on Mac. Most of it, I suppose, is not required, though it might be useful. But that particular method is the one that provides platform-independent file path concatenation. Is there a good substitute? Or do I have to probe sys.platform?

Steve Baer
11-08-2010, 09:30 PM
This sounds like the same problem described here
http://python.rhino3d.com/threads/246-Trouble-loading-python-module

Can you find the python2.6 framework on your computer and if so what is the path to this framework?

Thanks,
-Steve

Randolph
11-08-2010, 09:43 PM
I don't have a 2.6 framework--the native framework on Mac OS 1.05 is 2.5.1. I can download version 2.6 from python.org. Would that help?

Steve Baer
11-08-2010, 10:09 PM
Worth a try.

Randolph
11-08-2010, 11:47 PM
Yes, that fixed it. The 2.6.6 version of Mac Python can be found at http://www.python.org/download/releases/2.6.6/.

When this actually releases, I hope the framework will be bundled with Rhino for Mac!