Use apply_oe.py path to set 'isofit_path' in Pathnames instead of isofit.__file__ which fails for pip installed package
@@ -421,8 +421,8 @@ class Pathnames():
self.sixs_path = os.getenv('SIXS_DIR')
- # isofit file should live at isofit/isofit/core/isofit.py
- self.isofit_path = os.path.dirname(os.path.dirname(os.path.dirname(isofit.__file__)))
+ # apply_oe.py file should live at isofit/isofit/utils/apply_oe.py
+ self.isofit_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
if args.sensor == 'ang':
self.noise_path = join(self.isofit_path, 'data', 'avirisng_noise.txt')
