Skip to content
Snippets Groups Projects
Commit e3e8ba05 authored by Markus Holzer's avatar Markus Holzer
Browse files

Clean up

parent dbe3fb45
No related branches found
No related tags found
1 merge request!197Added version number to pystencils
...@@ -21,13 +21,13 @@ try: ...@@ -21,13 +21,13 @@ try:
except ImportError: except ImportError:
pass pass
def get_file_path(): def _get_file_path():
import os.path import os.path
file_path = os.path.abspath(os.path.dirname(__file__)) file_path = os.path.abspath(os.path.dirname(__file__))
return os.path.join(file_path, '../RELEASE-VERSION') return os.path.join(file_path, '..', 'RELEASE-VERSION')
try: try:
__version__ = open(get_file_path(), 'r').read() __version__ = open(_get_file_path(), 'r').read()
except IOError: except IOError:
__version__ = 'Please install pystencils with setup.py' __version__ = 'Please install pystencils with setup.py'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment