Suppress error when not building from git
This commit is contained in:
parent
839d692ec4
commit
ce66f54620
1 changed files with 1 additions and 1 deletions
2
wscript
2
wscript
|
@ -13,7 +13,7 @@ VERSION = '0.1.0'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
git = subprocess.Popen (['git', 'rev-parse', '--short', 'HEAD'],
|
git = subprocess.Popen (['git', 'rev-parse', '--short', 'HEAD'],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if not git.wait ():
|
if not git.wait ():
|
||||||
VERSION = (VERSION + '-' + git.stdout.read ()).strip ()
|
VERSION = (VERSION + '-' + git.stdout.read ()).strip ()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue