I stopped using os.path.join and simply use '/'.join because of this issue.
I pretty much just use '/' in all instances now just to be safe.

Another thing that came up here was with network drives.
On Windows we would get the following path:

//ourServer/somepath/foo

And on Linux this:

/ourServer/somepath/foo

Linux can handle both the first and second versions, but Windows requires
the first version. So file nodes and things in scenes made in Linux would
fail when the same scene was opened in Windows. We solved the problem by
forcing our Linux scripts to append the extra / at the beginning.

-Ben

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to