Skip to content

Commit

Permalink
Use os.path.normpath before open call
Browse files Browse the repository at this point in the history
  • Loading branch information
secondfry committed Dec 3, 2023
1 parent 2ad6e10 commit 6efba79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shortcircuit/model/evedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
def get_dict_from_csv(filename: str):
bundle_dir = path.abspath(path.dirname(__file__))
filepath = path.join(bundle_dir, '..', '..', 'database', filename)
Logger.info(filepath)
normpath = path.normpath(filepath)
Logger.info(normpath)

f = open(filepath, 'r', encoding='utf-8')
f = open(normpath, 'r', encoding='utf-8')
reader = csv.reader(f, delimiter=';')

return reader
Expand Down

0 comments on commit 6efba79

Please sign in to comment.