4 Star 7 Fork 1

SleepySoft / History

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
clean.py 550 Bytes
一键复制 编辑 原始数据 按行查看 历史
SleepySoft 提交于 2019-10-31 17:11 . Add build module
import os as _os
import shutil
_here = _os.path.abspath(_os.path.dirname(__file__))
_os.chdir(_here)
_remove_paths = (
'build',
'dist',
'__pycache__',
'application.spec'
)
if __name__ == '__main__':
for path in _remove_paths:
if _os.path.exists(path):
if _os.path.isfile(path):
_os.remove(path)
print('[Deleted]', path)
else:
shutil.rmtree(path)
print('[Deleted]', path)
else:
print('[Invalid]', path)
pass
1
https://gitee.com/SleepySoft/History.git
git@gitee.com:SleepySoft/History.git
SleepySoft
History
History
master

搜索帮助