I am trying to change directory using a variable which contains a path but os.chdir changes the \ in the path to \ which makes it undreadable/undefined for the os module and crashes.
any ideas on how to overcome this please?[shot ][1]
I am trying to change directory using a variable which contains a path but os.chdir changes the \ in the path to \ which makes it undreadable/undefined for the os module and crashes.
any ideas on how to overcome this please?[shot ][1]
Try to use raw strings
when dealing with file paths.
BOOKING_DIR = r"path to your dir"