straw-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Straw-devel] os.path.join() in straw_distutils.py in straw-0.23


From: Terje Rosten
Subject: [Straw-devel] os.path.join() in straw_distutils.py in straw-0.23
Date: Sun, 02 May 2004 18:27:37 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

A diff from straw-0.22/tools/straw_distutils.py to
straw-0.23/tools/straw_distutils.py

includes lots of changes on the form

- var = a + '/' + b
+ var = os.path.join(a, b)

However, these two lines will return different values if b is an
absolute path:

>>> print os.path.normpath('/etc/' + '/' + '/straw')
/etc/straw
>>> print os.path.normpath(os.path.join('/etc/' , '/straw'))
/straw

So I wonder if the changes in question is really correct?


 - Terje










reply via email to

[Prev in Thread] Current Thread [Next in Thread]