Skip to content

Commit

Permalink
import appdir in PostInstallCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
OuyangWenyu committed Feb 14, 2024
1 parent 30d6926 commit 55af150
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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:12:06
LastEditTime: 2024-02-14 12:30:09
LastEditors: Wenyu Ouyang
Description: The setup script.
FilePath: \hydroutils\setup.py
Expand All @@ -12,7 +12,6 @@

import io
import pathlib
import appdirs
from os import path as op
from setuptools import setup, find_packages
from setuptools.command.install import install
Expand Down Expand Up @@ -40,6 +39,8 @@

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

install.run(self)
# Define cache and config paths
setting_dir = pathlib.Path.home()
Expand Down

0 comments on commit 55af150

Please sign in to comment.