16.04.12 00:07, Kiuhnm написав(ла): > path = path.replace('\\', '\\\\') If you think that it is too complicated: path = re.sub('\\\\', '\\\\\\\\', path)