Skip to content
Snippets Groups Projects

Added version number to pystencils

Merged Markus Holzer requested to merge holzer/pystencils:version_number into master
+ 12
0
@@ -21,6 +21,18 @@ try:
except ImportError:
pass
def _get_file_path():
import os.path
file_path = os.path.abspath(os.path.dirname(__file__))
return os.path.join(file_path, '..', 'RELEASE-VERSION')
try:
__version__ = open(_get_file_path(), 'r').read()
except IOError:
__version__ = 'Please install pystencils with setup.py'
__all__ = ['Field', 'FieldType', 'fields',
'TypedSymbol',
'make_slice',
Loading