We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35756ab commit f610d4cCopy full SHA for f610d4c
setup.py
@@ -1,8 +1,12 @@
1
from distutils.core import setup
2
3
import os
4
-with open(os.path.join(os.path.dirname(__file__), 'VERSION.txt'), 'r') as f:
5
- version = f.read().rstrip()
+try:
+ with open(os.path.join(os.path.dirname(__file__), 'VERSION.txt'), 'r') as f:
6
+ version = f.read().rstrip()
7
+except IOError:
8
+ with open(os.path.join(os.path.dirname(__file__), 'tellurium/VERSION.txt'), 'r') as f:
9
10
11
setup(name='tellurium',
12
version=version,
0 commit comments