Importing from Another Path

Ken Seehof kens at sightreader.com
Mon Jul 30 01:09:48 CEST 2001


Peter Mayne <Peter.Mayne at au1.ibm.com> wrote:
> > Ype Kingma wrote:
> >
> > > > sys.path.append("..\\common")
> >
> > Actually I just meant that it wasn't portable between Windows and Linux
> > because I'm using backslashes in the path.
>
> Windows is perfectly happy to accept "/" in a filename path. Try
>
> sys.path.append('../common')
>
> However, this won't help when someone runs the script on an OS that
doesn't
> accept either form.
> <snip/>

Is there any OS that python runs on that doesn't support "/" ?
And ".." ?

Are there any major new operating systems currently in development that
are silly enough not to support these?

- Ken






More information about the Python-list mailing list