Commit 322afc39 authored by Sylvain Guieu's avatar Sylvain Guieu

config path changed to find the package share directory

parent 76e75824
......@@ -6,7 +6,16 @@ So far only one tool is made to read and handle device list
## Installation
From pip
```
> pip install hrmtools
```
from sources
```
> git clone git@gricad-gitlab.univ-grenoble-alpes.fr:guieus/hrmtools.git
> cd hrmtools
> python setup.py install
```
......
......@@ -6,6 +6,10 @@ __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__:
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.dev0' # https://www.python.org/dev/peps/pep-0440/
version='0.1.dev1' # 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