Commit dc35a0a7 authored by Sylvain Guieu's avatar Sylvain Guieu

fix config share path

parent 322afc39
......@@ -6,10 +6,13 @@ __module_dir__, _ = os.path.split(__file__)
__package_dir__, __pkg__ = os.path.split(__module_dir__)
config_path.append(os.path.join(__package_dir__, "share", __pkg__, "config"))
for i in range(2):
__package_dir__ = os.path.dirname(__package_dir__)
if __package_dir__:
# found the lib package and look for a share directory at same level
while __package_dir__:
__package_dir__, __s__ = os.path.split(__package_dir__)
if __s__ == "lib":
config_path.append(os.path.join(__package_dir__, "share", __pkg__, "config"))
# also include the module/config directory in case it was not installed py setup.py
config_path.append(os.path.join(__module_dir__, "config"))
......
......@@ -7,7 +7,7 @@ import sys
from setuptools import setup
name = "hrmtools"
version='0.1.dev1' # https://www.python.org/dev/peps/pep-0440/
version='0.1.dev2' # https://www.python.org/dev/peps/pep-0440/
author='Sylvain Guieu'
author_email='sylvain.guieu@univ-grenoble-alpes.fr'
install_requires = ['yaml-1.3', 'openpyxl>=3.0']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment