[issue39845] Argparse on Python 3.7.1 (Windows) appends double quotes to string if it ends with backward slash

2020-03-05 Thread Ion Cebotari
Ion Cebotari added the comment: Yes, the problem seems to be with sys.argv.: Windows output: python .\main.py -d Z:\tmp\test\DJI\ 'C:\unu doi\' sys.argv: ['.\\CamCardOrganizer.py', '-d', 'Z:\\tmp\\test\\DJI\\', 'C:\\unu doi"'] args namespace: Namespace(capturedatefmt='%y.

[issue39845] Argparse on Python 3.7.1 (Windows) appends double quotes to string if it ends with backward slash

2020-03-04 Thread Ion Cebotari
New submission from Ion Cebotari : I have this code for a tool that copies files from one directory to another: parser = argparse.ArgumentParser() parser.add_argument('src_dir') parser.add_argument('dest_dir') args = parser.parse_args() It works fine on Unix, but on Windows