Skip to content

Commit

Permalink
Fix log path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonyte committed Dec 5, 2021
1 parent 78112dc commit 40e5f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/dff.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def main(dir: str = None, output_dir: str = None, exclude_dirs: list[str] = [],
print_message()
dir = os.path.expanduser(os.path.normpath(user_input("Enter a directory to search: ") if dir is None else dir))
output_dir = os.path.expanduser(os.path.normpath(dir if output_dir is None else output_dir))
logging.log_path = output_dir
logging.log_path = os.path.join(output_dir, 'dff_log.txt')
logging.clear_log()
start_time = perf_counter()
all_files = get_file_paths(dir, exclude_dirs, exclude_files)
Expand Down

0 comments on commit 40e5f12

Please sign in to comment.