This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cygwin, python and abspath()
- From: Mikko Rapeli <mikko dot rapeli at iki dot fi>
- To: cygwin at cygwin dot com
- Date: Tue, 16 Jul 2013 18:01:06 +0300
- Subject: Cygwin, python and abspath()
Hi,
Does anyone know why os.path.abspath() in python on cygwin is creating
invalid path names when given these cygwin compatible dos path names?
$ pwd
/cygdrive/c/temp
$ python -c "import os; os.path.abspath('/cygdrive/c/temp')"
/cygdrive/c/temp
$ python -c "import os; os.path.abspath('c:/temp')"
/cygdrive/c/temp/c:/temp
I have cmake generating the dos compatible path names and they work with
all other cygwin utilities that I've used.
And wouldn't it be nice if cygwin would not allow creating files and
directories named "c:"...
-Mikko
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple