Normalize all the paths so string replacement for 'Beginning of'/'End of' comments works in more cases

This commit is contained in:
Brent Davis 2020-06-18 17:07:05 -05:00 committed by The Phantom Derpstorm
parent 62a831cda7
commit 1ce551e9ee

View File

@ -39,7 +39,7 @@ forward_single_file = ''
single_file = os.path.normpath(args.output[0])
if len(args.output) > 1:
forward_single_file = args.output[1]
forward_single_file = os.path.normpath(args.output[1])
else:
a, b = os.path.splitext(single_file)
a = os.path.dirname(single_file)
@ -49,7 +49,7 @@ else:
single_file_dir = os.path.dirname(single_file)
forward_single_file_dir = os.path.dirname(forward_single_file)
script_path = args.input
script_path = os.path.normpath(args.input)
working_dir = os.getcwd()
os.chdir(script_path)