config.py 398 Bytes
Newer Older
Sylvain Guieu's avatar
Sylvain Guieu committed
1 2 3 4 5 6 7 8 9 10 11 12 13
import os 

config_path = []
## by default look in the share directory 
__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"))
# also include the module/config directory in case it was not installed py setup.py
config_path.append(os.path.join(__module_dir__, "config"))