STINNER Victor added the comment:

> print os.path.basename ("C:\Users\Alkor\Desktop\a3434.raw")

Ah, it's a common trap of the Python syntax (and PHP, and C, and ... 
languages). "\" is a special character, you have to escape it: "\\".

"C:\\Users\\Alkor\\Desktop\\a3434.raw"

or simply use the "raw" string syntax:

r"C:\Users\Alkor\Desktop\a3434.raw"

----------
nosy: +haypo
resolution:  -> invalid

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17280>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to