Is there a way to identify the current version of deadline from within a job or the cpython environment running within deadline? An env variable or something like that? We have a few versions of deadline running parallel, and would like to keep jobs spawned by other jobs consistently in the right version.
from Deadline.Scripting import ClientUtils
def __main__():
version = ClientUtils.GetDeadlineVersion() # Returns a float
print("Deadline's version is {}".format(version))
# Full string output:
version = ClientUtils.ExecuteCommandAndGetOutput("GetVersion")
print("Deadline's version is {}".format(version))
Results in:
c:\Program Files\Thinkbox\Deadline10\bin>deadlinecommand executescript c:\Users\myname\Downloads\getversion.py
Qt: Untested Windows version 10.0 detected!
Deadline's version is 10.0
c:\Program Files\Thinkbox\Deadline10\bin>deadlinecommand executescript c:\Users\myname\Downloads\getversion.py
Qt: Untested Windows version 10.0 detected!
Deadline's version is v10.0.10.4 Release (ffe5d2721)