1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix run missing function

Fix https://github.com/GNS3/gns3-gui/issues/1878
This commit is contained in:
Julien Duponchelle 2017-02-23 09:13:27 +01:00
parent 6a91804116
commit 40be22bc58
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -31,7 +31,7 @@ if "dev" in __version__:
import os
import subprocess
if os.path.exists(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".git")):
r = subprocess.run(["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE).stdout.decode().strip("\n")
r = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip("\n")
__version__ += "-" + r
except Exception as e:
print(e)