Mel how to get system env key/item dict?

Mel how to get system env key/item dict?

Bob.Bon2000
Collaborator Collaborator
272 Views
0 Replies
Message 1 of 1

Mel how to get system env key/item dict?

Bob.Bon2000
Collaborator
Collaborator

Hey

 

I'm trying to update the deadline submission script which is about... IT'S OVER 9000! Lines of code, and I need to get in MEL, my environment variables, fish out ones I need from it and pass as part of the submission.

 

The fun part is I'm python/C++ guy and I cant find any way of getting it in mel. Can any1 comment?

Also

```string $craSystemEnvs[] = python("import os;envs = os.environ;envs");```

This crashes Maya.

 

TIA

273 Views
0 Replies
Replies (0)