Our context.py is currently our approach to locate installed data files (test data files, basis sets, ...), which we install nicely in the FHS-designated $PREFIX/share directory. (See http://www.pathname.com/fhs/) This has a few problems though:
- The solution is non-modular. When we start to split of packages, every single one will have a
context.py (if the package has data files).
- It duplicates some functionality already present in Python (and setuptools) to access installed data files.
- It does not work on
.egg installations.
There are a few alternatives:
Our
context.pyis currently our approach to locate installed data files (test data files, basis sets, ...), which we install nicely in the FHS-designated$PREFIX/sharedirectory. (See http://www.pathname.com/fhs/) This has a few problems though:context.py(if the package has data files)..egginstallations.There are a few alternatives:
context.py: use__file__to locate data files.