PyQt/Test/自定义import/build.py

22 lines
418 B
Python
Raw Normal View History

2018-12-28 20:50:07 +08:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
2021-07-13 14:52:26 +08:00
"""
2018-12-28 20:50:07 +08:00
Created on 2018年1月28日
2021-07-13 14:52:26 +08:00
@author: Irony
@site: https://pyqt.site , https://github.com/PyQt5
2018-12-28 20:50:07 +08:00
@email: 892768447@qq.com
@file: build
@description:
2021-07-13 14:52:26 +08:00
"""
2018-12-28 20:50:07 +08:00
import base64
import xxtea # @UnresolvedImport
KEY = base64.b85decode("HF5^hbNbOVOKM=(SB`7h")
with open("src/test.py", "rb") as fi:
open("test.irony", "wb").write(xxtea.encrypt(fi.read(), KEY))
print("ok")