def run(self):
install.run(self)
WYRM_PATH = os.path.join(self.install_scripts, 'wyrm')
AIOWEB_SHARE = os.path.join(self.install_base, 'share/aioweb/')
print("creating %s" % WYRM_PATH)
if os.path.exists(WYRM_PATH):
os.unlink(WYRM_PATH)
shutil.copy2("bin/wyrm", self.install_scripts)
print("coping generators")
if os.path.exists(AIOWEB_SHARE):
shutil.rmtree(AIOWEB_SHARE)
os.mkdir(AIOWEB_SHARE)
shutil.copytree("generators", os.path.join(AIOWEB_SHARE, "generators"))
评论列表
文章目录