move to sub dir

This commit is contained in:
tianyu
2015-06-10 21:39:31 +08:00
parent 232ecdcd5b
commit 35f0cef4aa
5 changed files with 108 additions and 0 deletions

18
net/DownloadHelper/mirror.py Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env python
import json
import sys
__author__ = 'ty'
config = json.load(open('config.json'))
mirror = config["mirror"]
url = config["url"]
l = sys.argv[1]
download_link = l
for m in mirror:
download_link += " " + l.replace(url, m)
print download_link + "\n"