If I recall correctly, windows paths uses \ instead of /... try replacing the path by: dir_path = r"C:\test\test.ma" Notice the r character before starting the string, this means it's a raw string (\ is a escape character), if you don't want to use a raw string you will need to use something like "C:\\test\\test.ma".
Cheers! -- 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/CAPamJi_YPKxA1vXX0P5kXrtY6ERTXidCJcULKJQvj8vNo_273Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
