[Pythonmac-SIG] clickable Python OSX apps and os.getcwd()
Rob Bedford
rafferty29 at mchsi.com
Mon Jul 7 08:13:47 EDT 2003
I believe the same occurs with a drag and drop onto the PythonLauncher.
I had to add some code to make this work since I used an options file
for GUI elements. Other than this and a need for pythonw the code work
completely between Linux and Mac OS X (Windoz broke since the program
needs os.execv and this is not supported)
Rob
On Monday, July 7, 2003, at 12:39 AM, bugs wrote:
> 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
>
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
More information about the Pythonmac-SIG
mailing list