On Sat, May 9, 2015 at 5:00 AM, <zljubisic...@gmail.com> wrote: > But it returns the following error: > > > C:\Python34\python.exe C:/Users/bckslash_test.py > File "C:/Users/bckslash_test.py", line 4 > ROOTDIR = 'C:\Users' > ^ > SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in > position 2-3: truncated \UXXXXXXXX escape
Strong suggestion: Use forward slashes for everything other than what you show to a human - and maybe even then (some programs have always printed stuff out that way - zip/unzip, for instance). The backslash has special meaning in many contexts, and you'll just save yourself so much trouble... ROOTDIR = 'C:/Users/zoran' Problem solved! ChrisA -- https://mail.python.org/mailman/listinfo/python-list