Skip to content

Commit

Permalink
Update app.log path #247
Browse files Browse the repository at this point in the history
Reference: #305
Reference: #247

Signed-off-by: John M. Horan <[email protected]>
  • Loading branch information
johnmhoran committed Mar 7, 2024
1 parent 4020e1b commit 888d8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions purldb-toolkit/src/purldb_toolkit/purlcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def construct_headers(
print(warning)
continue

log_file = Path(log_file=os.path.join(os.path.expanduser("~"), "app.log"))
log_file = Path(os.path.join(os.path.expanduser("~"), "app.log"))
if log_file.is_file():
with open(log_file, "r") as f:
for line in f:
Expand Down Expand Up @@ -842,7 +842,7 @@ def check_for_duplicate_input_sources(purls, file):


def clear_log_file():
log_file = Path(log_file=os.path.join(os.path.expanduser("~"), "app.log"))
log_file = Path(os.path.join(os.path.expanduser("~"), "app.log"))

if log_file.is_file():
os.remove(log_file)
Expand Down

0 comments on commit 888d8d8

Please sign in to comment.