New question #272186 on Sikuli: https://answers.launchpad.net/sikuli/+question/272186
when i write code below , i'm getting the path including double backslashes . How do I get rid of extra backslash? ############################ import sys import codecs print sys.path sys.path.append("C:\Program Files\SikuliX\lib.sikuli") print sys.path path1 = u"Users\\system99\\Desktop\\sikuli_func.txt".encode("utf-8") print path1 for list in open(path1,"r"): print list ############################ and i get below in the message box. ############################ u'C:\\Program Files\\SikuliX\\lib.sikuli', u'C:\\Program Files\\SikuliX\\lib.sikuli', u'C:\\Program Files\\SikuliX\\lib.sikuli', u'C:\\Program Files\\SikuliX\\lib.sikuli', 'C:\\Program Files\\SikuliX\\lib.sikuli'] Users\system99\Desktop\sikuli_func.txt [error] script [ temp6 ] stopped with error in line 8 [error] IOError ( (2, 'No such file or directory', 'Users\\system99\\Desktop\\sikuli_func.txt') ) ############################ -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp