cloud68
Hi All,

My studio has a system of setting up environment and launching softwares. Everytime I need to work on a project shot, I have to open a konsole, and type in the environment destination(for example:  takeme-to /projects/spiderman/modeling/props), then it will setup the environment for you, and then I can launch maya, and all project, plugin settings etc will be set to that environment.

I am trying to automate this process in maya.

I can easily open a new konsole via:
os.system("konsole &")

but how can I inject a string to execute in it, eg:
"takeme-to /projects/spiderman/modeling/props"

and then enter the command to open Maya under this environment:
"maya"

pipeline guys said it cannot be done but i simply dont believe them. :)
Thank you in advance for any help or thoughts

C
Reply 0 0
pshipkov
here is one way:
xterm -hold -e "takeme-to /projects/spiderman/modeling/props \n maya"

another way is to fork new subprocess take a look at the subprocess stuff in python.
Reply 0 0
cloud68
Thanks peter,

I apologize for late reply
Reply 0 0
Reply