Re: spawnl

21 views
Skip to first unread message

Paulman

unread,
Apr 18, 2008, 11:41:02 PM4/18/08
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.

Farsheed Ashouri

unread,
Apr 19, 2008, 6:58:41 AM4/19/08
to python_inside_maya
Witch version of Maya do you use?
Linux or Win or Mac ?

Dean Edmonds

unread,
Apr 19, 2008, 7:44:03 AM4/19/08
to python_in...@googlegroups.com
On Sat, Apr 19, 2008 at 3:58 AM, Farsheed Ashouri <rodme...@gmail.com> wrote:
>
> Witch version of Maya do you use?
> Linux or Win or Mac ?

All three, but primarily Linux.

--
-deane

Paulman

unread,
Apr 19, 2008, 11:27:44 AM4/19/08
to python_inside_maya
Oops, yes I should have mentioned I'm using Maya 2008 on Windows
Vista.

Farsheed Ashouri

unread,
Apr 19, 2008, 6:38:03 PM4/19/08
to python_inside_maya
try to use 2.5.1. Maya 2k8's version is 2.5.1.
Reply all
Reply to author
Forward
0 new messages