mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-24 06:56:42 +00:00
Try to fix capsys issue with Python 3.8 (third try)
This commit is contained in:
parent
7fb554135f
commit
1a4c2ed069
@ -32,6 +32,6 @@ if "dev" in __version__:
|
|||||||
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.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip()
|
r = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip()
|
||||||
__version__ += "-" + r
|
__version__ = "{}-{}".format(__version__, r)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user