[Pythonmac-SIG] Current Working Directory in PyObjC
Stephen Mitchell
stephenmitchell at letu.edu
Sun Nov 2 12:04:26 EST 2003
How does one get the current working directory in a double-clickable os
X app?
I've tried the standard methods:
currDir = os.getcwd()
currDir = os.popen('pwd').readlines()[0]
and while these all may work when built through xCode, when you try to
open the double-clickable application from the Finder, these return '/'
and '\n' respectively. Any ideas or workarounds?
More information about the Pythonmac-SIG
mailing list