[Pythonmac-SIG] clickable Python OSX apps and os.getcwd()

bugs bugbee at seanet.com
Sun Jul 6 23:39:38 EDT 2003


Hi all,

I am very gratified to see 2.3 with Tk and wx on the Mac.  With one 
exception, a large number of Python programs written on Windows and 
Linux now have a chance of running on a Mac without programmer 
assistance.  Kool!!!

However, when you double click apps created by BuildApplet and 
Platypus, the initial working directory is / and not the dir from which 
it was launched.  For programs developed under Linux and Windows, the 
initial working directory is often a starting point for navigating and 
locating things like parameter and data files.  These programs will 
fail under OSX.

Further, these programs are not likely to ever have any special OSX 
code nor will most Mac users have the knowledge or inclination to fix 
it.

This is not a problem for apps that get launched from the commandline.  
They work just like their Linux and Windows counterparts.  But apply 
some magic with BuildApplet and Platypus and the behavior is totally 
different.  Not good!  This behavior may be "standard" for OSX apps, 
but I'm not sure that makes it right.

I'd like to see BuildApplet and Platypus set the current working 
directory to be the directory from which they are launched.

What say you?

Tx,

Larry




More information about the Pythonmac-SIG mailing list