straw-devel
[Top][All Lists]
Advanced

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

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


From: Jan Alonzo
Subject: [Straw-devel] Re: os.path.join() in straw_distutils.py in straw-0.23
Date: Mon, 03 May 2004 18:56:36 +1000

Jan Alonzo <address@hidden>
From: Jan Alonzo <address@hidden>
Date: 03 May 2004 18:56:36 +1000
In-Reply-To: <address@hidden>
Message-ID: <address@hidden>
Lines: 34
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Terje Rosten <address@hidden> writes:

> 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
> 

Right. My apologies. If you can send a patch, then please do. Or else file a
bug then I'll fix it before 0.24 comes out.


Cheers



-- 
Jan Alonzo                          <address@hidden>




reply via email to

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