Skip to content

Commit

Permalink
fixed an issue with the path that caused the output files to be saved…
Browse files Browse the repository at this point in the history
… in the utils dir
  • Loading branch information
geekygirldawn committed Aug 17, 2023
1 parent 36720be commit b8b26bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/file_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def output_path(repo_name, org_name):
last_month = get_last_month()
current_year_month = str(last_month.year) + '-' + '{:02d}'.format(last_month.month)

current_dir = dirname(__file__)
current_dir = dirname(dirname(__file__)) # the double dirname is equivalent to ../
rel_path = './output/' + current_year_month + '/' + org_name + '/' + repo_name
path = join(current_dir, rel_path)
Path(path).mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit b8b26bc

Please sign in to comment.