parsel icon indicating copy to clipboard operation
parsel copied to clipboard

Make derivation of target file more robust.

Open vivekhaldar opened this issue 2 years ago • 0 comments

When invoking parsel.py with a filename that has "." in the path (e.g. "parsel.py ./programs/foo.ss"), current logic would set target_file to the empty string, hence writing output to a file called ".py". Using os.path.splitext handles such cases more robustly.

vivekhaldar avatar Feb 17 '23 22:02 vivekhaldar