[issue1293] Trailing slash in sys.path cause import failure

Brett Cannon report at bugs.python.org
Tue Nov 6 23:42:46 CET 2007


Brett Cannon added the comment:

On 11/6/07, Guido van Rossum <report at bugs.python.org> wrote:
>
> Guido van Rossum added the comment:
>
> > Another patch that uses os.path.normpath.
>
> Sorry, I really don't like to be importing os.path in order to be able
> to process the path used for an import.

Modules/getpath.c:joinpath() I think does what you want in C.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1293>
__________________________________


More information about the Python-bugs-list mailing list