Bryan Y
06-20-2008, 07:43 PM
Title says it all...
I have a MEL script, and I'd like to use a relative path, like "subdir/myfile.whatever" which would be a location in the directory from where my script is located.
Maybe I did my test wrong, but at this point, I'm not sure the current working directory is where the script is located. Or is it? If not, can I get the path of where my script is located?
And MAYA_SCRIPT_PATH in Maya.env does not hold the answer in a general situation, because there can be multiple locations that scripts can reside.
I have a MEL script, and I'd like to use a relative path, like "subdir/myfile.whatever" which would be a location in the directory from where my script is located.
Maybe I did my test wrong, but at this point, I'm not sure the current working directory is where the script is located. Or is it? If not, can I get the path of where my script is located?
And MAYA_SCRIPT_PATH in Maya.env does not hold the answer in a general situation, because there can be multiple locations that scripts can reside.
