Commit adef4248 authored by Philipp Arras's avatar Philipp Arras

Bytecode fix

parent aa1e2272
Pipeline #25819 passed with stage
in 5 minutes and 38 seconds
......@@ -24,10 +24,10 @@ def write_version():
import subprocess
p = subprocess.Popen(["git", "describe", "--dirty"],
stdout=subprocess.PIPE)
res = p.communicate()
res = p.communicate()[0].strip().decode('utf-8')
with open("nifty4/git_version.py", "w") as file:
file.write("def get_gitversion():\n")
file.write(" return \""+res[0].rstrip()+"\"\n")
file.write(' return "{}"\n'.format(res))
write_version()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment