try use sys.argv[0] instead

This commit is contained in:
shenjack 2023-06-10 15:48:52 +08:00
parent 5619699ebf
commit e6edaa9cd2

View File

@ -19,7 +19,7 @@ if __name__ == '__main__':
compiler = nuitka.CompilerHelper()
# 修改 python 执行文件 为 运行时的 python
compiler.python_cmd = sys.executable
compiler.python_cmd = sys.argv[0]
# 检测 --github 参数
is_github = False