Message4531

Author crankycoder
Recipients crankycoder
Date 2009-04-17.18:26:19
SpamBayes Score 4.549131e-06
Marked as misclassified No
Message-id <1239992780.2.0.685419481326.issue1319@psf.upfronthosting.co.za>
In-reply-to
Content
This seems like a bug in os.path.abspath.

In the Lib/site.py, the makepath function is not creating the right
absolute path.

(Pdb) dir
'/C:/jython2.5b3-standalone/jython.jar/Lib'
(Pdb) os.path.abspath(dir)
'C:\\C:\\jython2.5b3-standalone\\jython.jar\\Lib'
(Pdb)

It basically gets the "C:\" part confused.

(Pdb) dir[3:]
'/jython2.5b3-standalone/jython.jar/Lib'
(Pdb) os.path.abspath(dir[3:])
'C:\\jython2.5b3-standalone\\jython.jar\\Lib'
(Pdb)
History
Date User Action Args
2009-04-17 18:26:20crankycodersetmessageid: <1239992780.2.0.685419481326.issue1319@psf.upfronthosting.co.za>
2009-04-17 18:26:20crankycodersetrecipients: + crankycoder
2009-04-17 18:26:20crankycoderlinkissue1319 messages
2009-04-17 18:26:20crankycodercreate