Skip to content

Commit

Permalink
fix(fhempy): use get_fhempy_root()
Browse files Browse the repository at this point in the history
  • Loading branch information
fhempy committed Jan 2, 2023
1 parent 410fa8e commit 11bb24a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FHEM/bindings/python/fhempy/lib/pkg_installer.py
Expand Up @@ -13,6 +13,7 @@
from urllib.parse import urlparse

import pkg_resources
from fhempy.lib import utils

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
Expand Down Expand Up @@ -70,10 +71,7 @@ def check_dependencies(module):
of dependencies
"""
try:
from fhempy import lib

initfile = inspect.getfile(lib)
fhempy_root = os.path.dirname(initfile)
fhempy_root = utils.get_fhempy_root()
with open(fhempy_root + "/" + module + "/manifest.json", "r") as f:
manifest = json.load(f)

Expand Down

0 comments on commit 11bb24a

Please sign in to comment.