Commit 8cfd4afa authored by aiss's avatar aiss
Browse files

add dtk version

parent 5bcc463d
...@@ -185,6 +185,11 @@ if command_exists('git') and 'DS_BUILD_STRING' not in os.environ: ...@@ -185,6 +185,11 @@ if command_exists('git') and 'DS_BUILD_STRING' not in os.environ:
git_hash = result.decode('utf-8').strip() git_hash = result.decode('utf-8').strip()
result = subprocess.check_output(git_branch_cmd, shell=True) result = subprocess.check_output(git_branch_cmd, shell=True)
git_branch = result.decode('utf-8').strip() git_branch = result.decode('utf-8').strip()
#add dtk version
if os.getenv('DS_BUILD_VERSION'):
version_dtk = os.getenv('DS_BUILD_VERSION', "")
git_hash += "." + version_dtk
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
git_hash = "unknown" git_hash = "unknown"
git_branch = "unknown" git_branch = "unknown"
......
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