From 48dd78fa8cd0d18f465649781993fee1fcaa6114 Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Mon, 7 May 2018 13:57:26 -0700 Subject: [PATCH] Fix for build outside of scons --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 40f7fee..97ca917 100644 --- a/setup.py +++ b/setup.py @@ -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 = \