parsel
parsel copied to clipboard
Make derivation of target file more robust.
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.