3 Star 2 Fork 1

Gitee 极速下载/openage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/SFTtech/openage
克隆/下载
run.py.in 702 Bytes
一键复制 编辑 原始数据 按行查看 历史
heinezen 提交于 2023-07-22 22:52 +08:00 . cython: Fix openage module import error.
#!/usr/bin/env python3
"""
Openage can, and should, be launched via python3 -m openage.
However, for dynamic analysis using LLVM's sanitizer, a self-compiled
executable is needed.
This file is Cythonized with an embedded interpreter, producing ./run,
which satisifies that requirement.
"""
if __name__ == '__main__@SOME_UNDEFINED_VARIABLE_CMAKE_WILL_REMOVE@':
# This is stupid but without it, Cython/Python cannot find the openage module.
import os
import sys
sys.path.append(os.getcwd())
from openage.__main__ import main
main()
else:
print("Running this in the source directory is not supported.",
"Please use `make run` or `bin/run.py` to start instead.")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/openage.git
git@gitee.com:mirrors/openage.git
mirrors
openage
openage
master

搜索帮助