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
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' #
version='0.1.dev2' #
author='Sylvain Guieu'
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