From 40be22bc58547763b15ed271db03a00f7744fb38 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 23 Feb 2017 09:13:27 +0100 Subject: [PATCH] Fix run missing function Fix https://github.com/GNS3/gns3-gui/issues/1878 --- gns3server/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/version.py b/gns3server/version.py index f30973c3..aa32f3b8 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -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)