From 1ce551e9eebf91a2bafa870410df9955237c708b Mon Sep 17 00:00:00 2001 From: Brent Davis Date: Thu, 18 Jun 2020 17:07:05 -0500 Subject: [PATCH] Normalize all the paths so string replacement for 'Beginning of'/'End of' comments works in more cases --- single/single.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/single/single.py b/single/single.py index 6fea5018..5f96df1e 100644 --- a/single/single.py +++ b/single/single.py @@ -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)