2000-06-11 11:24:44 +00:00
|
|
|
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()
|
2000-06-11 20:26:08 +00:00
|
|
|
for name in ['linkchecker','test/profiletest.py']:
|
|
|
|
|
t = Template.Template(name+".tmpl")
|
|
|
|
|
f = open(name,"w")
|
|
|
|
|
f.write(t.fill_in({"syspath": "sys.path.insert(0, '"+distpath+"')"}))
|
|
|
|
|
f.close()
|
2000-06-11 11:24:44 +00:00
|
|
|
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"
|