1 Star 2 Fork 4

iofomo / tinyui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tinyui.py 785 Bytes
一键复制 编辑 原始数据 按行查看 历史
chendianbo 提交于 2024-01-05 02:24 . fix windows code exception issue
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Brief: ......
# @Author: ...
# @Date: 2023.05.15 00:00:19
import os
import sys
g_env_path = os.getcwd()
g_this_file = os.path.realpath(sys.argv[0])
g_this_path = os.path.dirname(g_this_file)
sys.path.append(g_this_path)
from utils.utils_import import ImportUtils
from framework.CmdSpace import CmdSpace
from framework.GuiSpace import GuiSpace
from framework.context import Context
ImportUtils.initEnv(g_this_path)
# --------------------------------------------------------------------------------------------------------------------------
def run():
Context.init(g_this_path, g_env_path)
if 2 < len(sys.argv):
CmdSpace().run(sys.argv[1:])
else:
GuiSpace().run()
if __name__ == '__main__':
run()
Python
1
https://gitee.com/iofomo/tinyui.git
git@gitee.com:iofomo/tinyui.git
iofomo
tinyui
tinyui
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891