From ef9deafe2fe7dbe4e02b58dab9bad0e60581bf8f Mon Sep 17 00:00:00 2001 From: Alex Hughes Date: Thu, 3 May 2018 00:29:37 -0700 Subject: [PATCH] Fixing a logic error on the path output code --- src/python/qt_py_convert/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/qt_py_convert/run.py b/src/python/qt_py_convert/run.py index 4e182a1..ee193da 100644 --- a/src/python/qt_py_convert/run.py +++ b/src/python/qt_py_convert/run.py @@ -577,7 +577,7 @@ def process_file(fp, write_mode=None, path=None, backup=False, skip_lineno=False if write_mode & WriteFlag.WRITE_TO_STDOUT: sys.stdout.write(modified_code) else: - if path: # We are writing elsewhere than the source. + if path and path[0]: # We are writing elsewhere than the source. src_root, dst_root = path root_relative = fp.replace(src_root, "").lstrip("/") write_path = os.path.join(dst_root, root_relative)