A flexible path to the data and example directories.
@@ -462,6 +462,9 @@ class Pathnames():
self.sixs_path = os.getenv('SIXS_DIR')
+ if os.getenv('ISOFIT_DATA_DIR'):
+ self.isofit_path = os.path.dirname(os.getenv('ISOFIT_DATA_DIR'))
+ else:
# isofit file should live at isofit/isofit/core/isofit.py
self.isofit_path = os.path.dirname(os.path.dirname(os.path.dirname(isofit.__file__)))
