Howdy,
I'm glad you were able to get past your issue, however I see a couple
issues in the code that are worth addressing still:
 - bacticks; Robert sent you in the right direction. Backticks are just a
shorthand for repr() which is probably not what you want at all.
 - backslashes; Using backslashes in strings can get tricky; this is an escape
character <https://docs.python.org/2.0/ref/strings.html>.

In python on windows you can actually use forward slashes for convenience
so you could have 'G:/ProjectPath/' instead, and it would work. Rather than
add the backslashes manually, I suggest using os.path.join() or os.path.sep
rather than writing out the path with backslashes. To compare paths with
different slashes you can just use os.path.normpath() in order to get the
system path separator restored.

Here's how the join would look:
os.path.join('G:', 'ProjectPath')

Cheers,
Jesse

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CANESWi1vyWJ9%2B5xJsZb3DoGQHJ_AKXOg_9vJAQd5JdL0uPNtYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to