I have set my project to a new location which contains all the *workspace.mel 
*file and the relevant sub folders

However when I run the following command, I getting an error

from maya import cmds
print cmds.workspace('images', q=True, fileRuleEntry=True)
# Error: Unknown workspace.
# Traceback (most recent call last):
#   File "<maya console>", line 2, in <module>
# RuntimeError: Unknown workspace. # 



In 2016.0 this command has no issues

from maya import cmds
print cmds.workspace('images', q=True, fileRuleEntry=True)

images

Anyone else encountered this problem?

-- 
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/87805295-210b-4973-8a5d-3c6a8fdfbddf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to