Fix for build outside of scons
This commit is contained in:
parent
a14c20f562
commit
48dd78fa8c
5
setup.py
5
setup.py
@ -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 = \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user