Py 3: Terminal script can't find relative path

Gnarlodious gnarlodious at gmail.com
Tue Jan 19 08:03:52 EST 2010


On Jan 18, 4:21 pm, John Bokma <j... at castleamber.com> wrote:
> Gnarlodious <gnarlodi... at gmail.com> writes:
> > I am running a script in a browser that finds the file in subfolder
> > Data:
>
> > Content=Plist('Data/Content.plist')
>
> > However, running the same script in Terminal errors:
>
> > IOError: [Errno 2] No such file or directory: 'Data/Content.plist'
>
> What does:
>
> ls -l Data/Content.plist
>
> in the terminal give?

I can replace with absolute paths and it works as expected. Could this
be a Python 3 bug? Where as a CGI script it finds the relative path
but not in Terminal?

-- Gnarlie



More information about the Python-list mailing list