Skip to content

Commit c3d83cd

Browse files
committed
added argument for an output dir
1 parent 8c80ddb commit c3d83cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python150k/preprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,15 @@ def set_script_arguments(parser):
304304
help="A file to be processed.")
305305
main_args.add_argument("--docstrings_file", type=str, default="python150k_docstrings.txt",
306306
help="A file to be processed.")
307+
main_args.add_argument("--output_dir", type=str, default="parsed",
308+
help="Parsing data.")
307309
return main_args
308310

309311

310312
def main(args):
311313

312314
# Clear the output directory
313-
directory = "example_output"
315+
directory = args.output_dir
314316
if os.path.exists(directory):
315317
shutil.rmtree(directory)
316318
os.mkdir(directory)

0 commit comments

Comments
 (0)