diff --git a/prospr/__init__.py b/prospr/__init__.py index 0f4e85a..8a94e48 100644 --- a/prospr/__init__.py +++ b/prospr/__init__.py @@ -1,3 +1,5 @@ +from pathlib import Path + from prospr_core import ( AminoAcid, Protein, @@ -9,7 +11,7 @@ from .visualize import plot_protein # Import __version__ from _version.py during compile time. -exec(open("prospr/_version.py").read()) +exec(open(Path(__file__).parent.absolute() / "_version.py").read()) __all__ = [ "__version__",