Skip to content

Commit

Permalink
import appdir again in PostInstallCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
OuyangWenyu committed Feb 14, 2024
1 parent 55af150 commit 4107b14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Author: Wenyu Ouyang
Date: 2022-12-02 10:42:19
LastEditTime: 2024-02-14 12:30:09
LastEditTime: 2024-02-14 12:37:03
LastEditors: Wenyu Ouyang
Description: The setup script.
FilePath: \hydroutils\setup.py
Expand Down Expand Up @@ -39,11 +39,10 @@

class PostInstallCommand(install):
def run(self):
import appdirs

install.run(self)
# Define cache and config paths
setting_dir = pathlib.Path.home()
import appdirs
cache_dir = appdirs.user_cache_dir(".hydro")
if not cache_dir.is_dir():
cache_dir.mkdir(parents=True)
Expand Down

0 comments on commit 4107b14

Please sign in to comment.