mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-17 12:51:01 +00:00
added install.py
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@107 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
e43a9da0fa
commit
a4dc2c7203
1 changed files with 17 additions and 0 deletions
17
install.py
Normal file
17
install.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import Template,os
|
||||
|
||||
distpath = os.getcwd()
|
||||
t = Template.Template("linkcheck/__init__.py.tmpl")
|
||||
f = open("linkcheck/__init__.py","w")
|
||||
f.write(t.fill_in({"install_data": distpath}))
|
||||
f.close()
|
||||
t = Template.Template("linkchecker.tmpl")
|
||||
f = open("linkchecker","w")
|
||||
f.write(t.fill_in({"syspath": "sys.path.insert(0, '"+distpath+"')"}))
|
||||
f.close()
|
||||
os.chmod("linkchecker", 0755)
|
||||
t = Template.Template("linkchecker.bat.tmpl")
|
||||
f = open("linkchecker.bat","w")
|
||||
f.write(t.fill_in({"install_scripts": distpath}))
|
||||
f.close()
|
||||
print "Local installation ok"
|
||||
Loading…
Reference in a new issue