Skip to content

Commit 3482d87

Browse files
authored
Merge pull request #7 from digitaldomain/feature-windows_support
Fixing a logic error on the path output code
2 parents 179add4 + ef9deaf commit 3482d87

File tree

1 file changed

+1
-1
lines changed
  • src/python/qt_py_convert

1 file changed

+1
-1
lines changed

src/python/qt_py_convert/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def process_file(fp, write_mode=None, path=None, backup=False, skip_lineno=False
577577
if write_mode & WriteFlag.WRITE_TO_STDOUT:
578578
sys.stdout.write(modified_code)
579579
else:
580-
if path: # We are writing elsewhere than the source.
580+
if path and path[0]: # We are writing elsewhere than the source.
581581
src_root, dst_root = path
582582
root_relative = fp.replace(src_root, "").lstrip("/")
583583
write_path = os.path.join(dst_root, root_relative)

0 commit comments

Comments
 (0)