Commit fe078e79 authored by Ghislain MARY's avatar Ghislain MARY

Prevent error when trying to download nuget.exe.

parent 5488dd41
......@@ -171,8 +171,10 @@ def check_tools():
def download_nuget():
os.makedirs("WORK")
urllib.urlretrieve("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", "WORK/nuget.exe")
if not os.path.isdir('WORK'):
os.makedirs("WORK")
if not os.path.isfile('WORK/nuget.exe'):
urllib.urlretrieve("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", "WORK/nuget.exe")
def list_features_with_args(debug, additional_args):
......
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