[issue31101] os.remove() auto add \ in Windows2012R2

2017-08-02 Thread Paul Moore
Paul Moore added the comment: There are two problems with your code and bug report: 1. By using a single quoted string, some of the backslashes in the path are being interpreted as starting a special character (specifically \t is interpreted as a tab character). You should either double the ba

[issue31101] os.remove() auto add \ in Windows2012R2

2017-08-02 Thread Re-ax
New submission from Re-ax: I need to remove a file in python at Windows2012R2, but, os.remove()auto add \ in each seq. code: #coding=utf-8 import os dir_path='d:\c\d\e\t\c\t.xf' os.remove(dir_path) result: Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)