Paulman
unread,Apr 18, 2008, 11:41:02 PM4/18/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python_inside_maya
Hello everybody,
The following code works in Python 2.5.2, but not in Maya:
import os;
joycmd = "C:\\mayacode\\AutoHotkey.exe"
os.spawnl( os.P_NOWAIT, joycmd );
The maya error message is:
# Error: (22, 'Invalid argument')
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# File "C:\Program Files\Autodesk\Maya2008\bin\python25.zip\os.py",
line 610, in spawnl
# return spawnv(mode, file, args)
# OSError: (22, 'Invalid argument') #
Any ideas?
Thanks.