Commit 7c265f4e authored by root's avatar root
Browse files

update download_seed

parent e5ee847e
/home/xumj/Codes/bqmail/download_seed.py
\ No newline at end of file
/opt/bqmail/download_seed.py
\ No newline at end of file
......@@ -62,8 +62,9 @@ for line in find_re.findall(content):
if line.find("seed") > 0:
lst.append(line[6:-2])
lstpath = os.path.join(os.path.expanduser("~"),".IRIS.lst")
print(lstpath)
if not os.path.exists(lstpath):
os.mknod(lstpath, mode=0o600)
os.mknod(lstpath)
with open(lstpath, "r+") as f:
oldlst = [line.strip() for line in f.readlines()]
with open(lstpath, "w+") as f:
......
......@@ -5,6 +5,7 @@ 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
......@@ -25,3 +26,4 @@ else
fi
fi
exec $SHELL -l
'''
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