os.popen and py2app

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcoliver
    New Member
    • Aug 2008
    • 1

    os.popen and py2app

    I have a python script (script 1) that calls another python script (script 2) which executes a command using os.popen. Everything works flawlessly when executed from the command line. However when I try and wrap script 1 into an application using py2app, the os.popen command in script 2 fails to execute. I have narrowed it down and am fully confident script 2 is running in its entirety with the exception of the os.popen command. I should note that script 2 is located on and referenced as a UNC path. I was thinking I could write out the command to a temp file and then call it with an os.system(comma nd) as a work around but was hoping someone might have an idea as to why os.popen is not working. (Always curious you know :) ). os.system commands execute just fine.

    Running 0S X 10.4.11. Python 2.3.5 installed with OSX
    Intel MacBook Pro

    * As I mentioned before. Script runs fine when executed from Terminal. Just not when wrapped with py2app.
Working...