Skip to content

Commit

Permalink
chore: Use pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jul 1, 2023
1 parent 7c9f5b4 commit ea1bcec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/unihan_db/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
from appdirs import AppDirs as BaseAppDirs

from appdirs import AppDirs
from unihan_etl._internal.app_dirs import AppDirs

#: XDG App directory locations
dirs = AppDirs("unihan_db", "cihai team") # appname # app author
dirs = AppDirs(_app_dirs=BaseAppDirs("unihan_db", "cihai team"))


if not os.path.exists(dirs.user_data_dir):
os.makedirs(dirs.user_data_dir)
if not dirs.user_data_dir.exists():
dirs.user_data_dir.mkdir(parents=True)

0 comments on commit ea1bcec

Please sign in to comment.