[Pythonmac-SIG] py2app and CLI Python programs

Robert Kern rkern at ucsd.edu
Tue May 10 17:29:55 CEST 2005


David Reed wrote:
> I've got a command line Python app that I tried packaging up with  
> py2app. It worked ok - t could cd into the subdir of the .app  
> containing the executable and run it from the command line, but I'm  
> not certain what its current working directory was since when I tried  
> to specify a file on the command line, it didn't find it. I had to  
> specify the full path to the file to make it work. Is there a simple  
> workaround for command line versions - I didn't see anything in the  
> documentation.

[/some/path] $ /Applications/MyApp.app/Contents/MacOS/MyApp

will usually have /some/path as the cwd.

However, .app bundles are probably not what you want for CLI apps.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter


More information about the Pythonmac-SIG mailing list