center-randomize icon indicating copy to clipboard operation
center-randomize copied to clipboard

[BugReport] output directory generation not working as expected.

Open krishna-parajuli opened this issue 10 months ago • 0 comments

https://github.com/moest-np/center-randomize/blob/607f3db84e5e589f49cf8c9cb165dfa24c0e0b32/school_center.py#L163C44-L163C53

if your comandline argument has ouptput unter a directory structure. thsi produces Directory not found Error.

Steps to reproduce: python3 school_center.py sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv -o sample_data/output_main.tsv Traceback (most recent call last): File "/Users/user/Documents/MOEST/center-randomize/school_center.py", line 165, in open(OUTPUT_DIR + args.output, 'w+', encoding='utf-8') as a_file: FileNotFoundError: [Errno 2] No such file or directory: 'results/sample_data/output_main.tsv'

krishna-parajuli avatar Apr 22 '24 07:04 krishna-parajuli