1 Star 0 Fork 0

happy-learning / learning-robotframework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
package.py 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
from __future__ import print_function
from glob import glob
from os import getcwd
from os.path import abspath, dirname, join
from time import localtime
from zipfile import ZipFile, ZIP_DEFLATED
assert getcwd() == dirname(abspath(__file__))
NAME = 'WebDemo'
ZIP_NAME = NAME + '-%d%02d%02d.zip' % localtime()[:3]
FILES = ['README.rst',
'demoapp/server.py',
'demoapp/html/*.html',
'demoapp/html/*.css',
'login_tests/*.robot']
with ZipFile(ZIP_NAME, 'w', ZIP_DEFLATED) as zipfile:
for pattern in FILES:
for path in glob(pattern):
print('Adding: ', path)
zipfile.write(path, join(NAME, path))
print('Created: ', ZIP_NAME)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/happy-learning/learning-robotframework.git
git@gitee.com:happy-learning/learning-robotframework.git
happy-learning
learning-robotframework
learning-robotframework
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891