Skip to content
Snippets Groups Projects
Commit 6c07a478 authored by Raman Arora's avatar Raman Arora
Browse files

Get the TSK_HOME env variable before using it.

parent 9cc9be33
Branches
Tags
No related merge requests found
......@@ -73,17 +73,18 @@ def pullAndBuildAllDependencies(depBranch):
# get all nuget packages needed by the solution
if(passed):
TSK_HOME = os.getenv("TSK_HOME", False)
if not TSK_HOME:
print("Please set the TSK_HOME environment variable")
sys.exit(1)
else:
# nuget restore
os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32"))
# nuget restore
print ("Restoring nuget packages.")
ret = subprocess.call(["nuget", "restore", "tsk-win.sln"] , stdout=sys.stdout)
if ret != 0:
sys.exit("Failed to restore nuget packages")
print ("Restoring nuget packages.")
ret = subprocess.call(["nuget", "restore", "tsk-win.sln"] , stdout=sys.stdout)
if ret != 0:
sys.exit("Failed to restore nuget packages")
def buildTSKAll():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment