On Wed, Nov 01, 2006 at 08:03:55AM -0600, Michael Urman wrote:
> >        p = os.path.normpath( os.path.join( __file__, "../..", "lib" ) )
> 
> Shouldn't an example avoid using the path separator directly within a
> string literal?
> 
>     p = path.normpath(path.join(__file__, "..", "..", "lib"))

   It also should use platform-independent constants:

p = path.normpath(path.join(__file__, os.pardir, os.pardir, "lib"))

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to