ValueError: invalid \x escape

crybaby joemystery123 at
Fri Nov 2 02:18:25 CET 2007

I wrote a python code in linux text pad and copied to thumb drive and
try to ran the file by changing the path to windows:

sys.path = sys.path + ['D:\Python24\Lib\site-packages\mycode]

I get the following error:

ValueError: invalid \x escape

I am pretty sure this problem is due some kind of linux end of line
markers or escape characters that windows os doesn't understand.  Is
there a way to fix this?

More information about the Python-list mailing list