From c46b67faf7846c33356af65234975ada176223ca Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 10 Jun 2023 15:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8Agithub=20=E5=8F=82=E6=95=B0=E6=94=BE?= =?UTF-8?q?=E5=88=B0=20output=E5=8F=82=E6=95=B0=E5=89=8D=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuitka_build.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nuitka_build.py b/nuitka_build.py index 9d0ae60..2d7e3f3 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -21,13 +21,6 @@ if __name__ == '__main__': # 修改 python 执行文件 为 运行时的 python compiler.python_cmd = sys.executable - # 检测 --output xx 参数 - if '--output' in sys.argv: - # 输入的是输出目录 - compiler.output_path = sys.argv[sys.argv.index('--output') + 1] - sys.argv.remove('--output') - sys.argv.remove(compiler.output_path) - # 检测 --github 参数 is_github = False if '--github' in sys.argv: @@ -36,6 +29,13 @@ if __name__ == '__main__': compiler.show_progress = False compiler.output_path = Path('./build/github') + # 检测 --output xx 参数 + if '--output' in sys.argv: + # 输入的是输出目录 + compiler.output_path = sys.argv[sys.argv.index('--output') + 1] + sys.argv.remove('--output') + sys.argv.remove(compiler.output_path) + print(compiler.output_path) print(compiler)