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
1 changed files with 3 additions and 2 deletions

View File

@ -90,9 +90,10 @@ else:
try:
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)
description = \