Commit 2d071ccd authored by Mijian Xu's avatar Mijian Xu 😷
Browse files

init util.py

parent b1a90487
......@@ -8,7 +8,10 @@
#
import os
import urllib.request as rq
try:
import urllib.request as rq
except:
import urllib as rq
import re
from multiprocessing.dummy import Pool as ThreadPool
import subprocess
......@@ -51,7 +54,7 @@ find_re = re.compile(r'href=.+?>',re.DOTALL)
for line in find_re.findall(content):
if line.find("seed") > 0:
lst.append(line[6:-2])
lstpath = os.path.expanduser("~"),".IRIS.lst")
lstpath = os.path.join(os.path.expanduser("~"),".IRIS.lst")
if not os.path.exists(lstpath):
os.mknod(lstpath, mode=0o600)
with open(listpath, "r+") as f:
......
......@@ -4,6 +4,7 @@ ln -s `pwd`/bqmail.py `pwd`/bin/bqmail
ln -s `pwd`/searchDMC.py `pwd`/bin/searchDMC
ln -s `pwd`/updateCatalog.py `pwd`/bin/updateCatalog
ln -s `pwd`/bqmail_conti.py `pwd`/bin/bqmail_conti
ln -s `pwd`/download_seed.py `pwd`/bin/download_seed
if [ `uname` == "Darwin" ]; then
if grep "export PATH=`pwd`/bin:\$PATH" ~/.bash_profile
then
......
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