[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules getpath.c,1.30,1.31
Fred L. Drake, Jr.
fdrake@beopen.com
Mon, 25 Sep 2000 14:07:00 -0400 (EDT)
Jeremy Hylton writes:
> FLD> Did you test this when argv[0] is something like
> FLD> './/foo/bin/python'?
>
> No. Two questions: What would that mean? How could I generate it?
That should mean the same as './foo/bin/python' since multiple '/'
are equivalent to a single '/' on Unix. (Same for r'\' on Windows
since this won't interfere with UNC paths (like '\\host\foo\bin...')).
You can do this using fork/exec.
-Fred
--
Fred L. Drake, Jr. <fdrake at beopen.com>
BeOpen PythonLabs Team Member