Message182740
> 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" |
|
Date |
User |
Action |
Args |
2013-02-23 13:23:42 | vstinner | set | recipients:
+ vstinner, loewis, tim.golden, brian.curtin, Alex.Ternovoy |
2013-02-23 13:23:42 | vstinner | set | messageid: <1361625822.13.0.0245971695392.issue17280@psf.upfronthosting.co.za> |
2013-02-23 13:23:42 | vstinner | link | issue17280 messages |
2013-02-23 13:23:41 | vstinner | create | |
|