mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
Fix run missing function
Fix https://github.com/GNS3/gns3-gui/issues/1878
This commit is contained in:
parent
6a91804116
commit
40be22bc58
@ -31,7 +31,7 @@ if "dev" in __version__:
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
if os.path.exists(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".git")):
|
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
|
__version__ += "-" + r
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user