Geuse
01-17-2011, 09:25 PM
I've googled, but couldn't find an answer to this one and so I just have to ask.
Is it possible to add mel commands to the maya.env?
I would need to check the OS version and wether it's XP or windows7 declare different scriptpaths in the maya.env.
You see in windows7 it isn't called "My Documents", but simply "Documents".
Instead of having to modify and maintaning 2 maya.env-files I'd like to add an if else statement, but it doesn't seem to work in the maya.env and since there are no environment variable directed to "My Documents" folder, it seems I'm stuck with having to copy and change the maya.env for each os version every now and then.
Thanks!
Is it possible to add mel commands to the maya.env?
I would need to check the OS version and wether it's XP or windows7 declare different scriptpaths in the maya.env.
You see in windows7 it isn't called "My Documents", but simply "Documents".
Instead of having to modify and maintaning 2 maya.env-files I'd like to add an if else statement, but it doesn't seem to work in the maya.env and since there are no environment variable directed to "My Documents" folder, it seems I'm stuck with having to copy and change the maya.env for each os version every now and then.
Thanks!
