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

Clean up

parent e3e8ba05
No related branches found
No related tags found
1 merge request!197Added version number to pystencils
...@@ -21,11 +21,13 @@ try: ...@@ -21,11 +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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment