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
4045 4 1-
- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
-
- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
-
- edward
- Member
- 8166 posts
- Joined: July 2005
- Offline
-
- pezetko
- Member
- 392 posts
- Joined: Nov. 2008
- Offline
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: Dec. 2009
- Offline
-
- Quick Links

