Le vendredi 21 octobre 2016 21:12:37 UTC+2, [email protected] a écrit :
> Hello,
>
> Anyone know how to use subprocess inside Maya ?
> When i'm trying this code inside maya:
>
> import subprocess
>
> dirName = '/u/Users/TEST/'
> xdg = subprocess.Popen(['xdg-open', dirName], stdout=subprocess.PIPE,
> stdin=subprocess.PIPE, stderr=subprocess.PIPE)
>
> It does nothing, but when I execute this code in a Linux script command it
> works.
Thanks all for your answers
I got a result by doing this:
subprocess.call('xdg-open {0}'.format(myFolder), shell=True)
--
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/8dd223f3-ebf9-45c4-8297-563508894908%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.