Skip to content

Commit

Permalink
refact(backend): pathlib.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Dec 7, 2024
1 parent 5015de6 commit 1a50151
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import configparser
import json
import logging
import os
import pathlib
import typing

Expand All @@ -15,7 +14,7 @@
from types_query import Page, QueryResult

logging.basicConfig(
filename=os.path.join(os.path.dirname(__file__), "locator-tool.log"),
filename=str(pathlib.Path(__file__).parent.joinpath( "locator-tool.log")),
format="[%(asctime)s] %(levelname)s in %(module)s: %(message)s",
level=logging.DEBUG,
)
Expand Down

0 comments on commit 1a50151

Please sign in to comment.