Fix for build outside of scons

This commit is contained in:
Joseph Coffland 2018-05-07 13:57:26 -07:00
parent a14c20f562
commit 48dd78fa8c

View File

@ -90,9 +90,10 @@ else:
try: try:
version = open('version.txt').read().strip() version = open('version.txt').read().strip()
except: version = None version.split('.')
except: version = '0.0.0'
if version is not None: if not os.path.exists('fah/Version.py'):
open('fah/Version.py', 'w').write('version = \'%s\'\n' % version) open('fah/Version.py', 'w').write('version = \'%s\'\n' % version)
description = \ description = \