windows下载文件到指定位置
powershell (new-object System.Net.WebClient).DownloadFile(‘http://durbiox.west.isilon.com/qa/log/powerload/profiles/dryrun/get-pip.py‘,‘C:\log\get-pip.py‘)
添加路径到系统path,并置顶,需要开新的terminal才生效;
SETX /M path "C:\Users\Administrator\Appdata\python\scripts;%path%"
# add user‘s paht to sys path
np = ‘{0};%path%‘.format(u_path)
client.ignore.run(‘SETX /M path "{0}"‘.format(np))
results[client.ip]=u_path