[Pythonmac-SIG] Re: Path Issues

Joshua Tompkins joshua at joshuatompkins.us
Mon Nov 3 15:44:05 EST 2003


Bob Ippolito wrote:

>
> On Nov 3, 2003, at 3:28 PM, Joshua Tompkins wrote:
>
>> Yes, I'm using the open() builtin function.
>
>
> Are you using it from an application bundle?  an app opened via 
> LaunchServices (Finder, the open command) will have a getcwd() of / 
> when it starts.  Try "print os.getcwd()" to see where the cwd is.
>
> -bob
>
>
I'm running Python by typing "python" from the Terminal.

os.getcwd() returns "/Users/joshua" (with that capitalization).

-joshua




More information about the Pythonmac-SIG mailing list