i couldn't use os.system() to execute a command as it is in the terminal.
I only get a return value of 256 and the file “scene.oct” is not generated from the “oconv” command string.
the error message is shown below.
Can anybody advise on the source of the error?
Thank you!
os.system() doesn't execute command
3540 4 1-
- oat
- Member
- 479 posts
- Joined: 12月 2009
- オフライン
-
- oat
- Member
- 479 posts
- Joined: 12月 2009
- オフライン
-
- edward
- Member
- 8077 posts
- Joined: 7月 2005
- オフライン
-
- pezetko
- Member
- 392 posts
- Joined: 11月 2008
- オフライン
I don't know if it will work better with OSX but you can try: subprocess.call()
http://www.pythonforbeginners.com/os/subprocess-for-system-administrators [pythonforbeginners.com]
http://www.pythonforbeginners.com/os/subprocess-for-system-administrators [pythonforbeginners.com]
-
- oat
- Member
- 479 posts
- Joined: 12月 2009
- オフライン
-
- Quick Links

