Skip to content

Commit f610d4c

Browse files
Fix #134, this fixes the VERSION.txt issue by looking in fallback location
1 parent 35756ab commit f610d4c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
from distutils.core import setup
22

33
import os
4-
with open(os.path.join(os.path.dirname(__file__), 'VERSION.txt'), 'r') as f:
5-
version = f.read().rstrip()
4+
try:
5+
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+
version = f.read().rstrip()
610

711
setup(name='tellurium',
812
version=version,

0 commit comments

Comments
 (0)