os.system() Python module updated?

   3883   1   1
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
I have the following Python code in one of the python otl which runs ok in windows and linux but not in Mac OS 10.6.6:

# Create the OCONV command string
command = ‘oconv’ + ‘ ’ + ‘plastic_mat_file + ’ ‘ + environ_file + ’ ‘ + geom_file + ’ ‘ + ’>' + ‘ ’ + oct_file

# Execute the command
os.system(command)

My houdini is 11.0.658 which uses Python 2.6.1 whereas my Mac OS installed a Python 2.6.5.

Is the different version of Python causing the problem?

or has os.system() module has been replaced by other module in Python 2.6.5?


Thanks!
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
sorry, I figured it out.

it is because the Mac OS system didn't know where the ‘oconv’ command is.

by copy the ‘oconv’ command to /usr/bin the python node works well now.

so it's a problem with my software installation in Mac OS and it's nothing to do with Python or Houdini.
  • Quick Links