✏️ 正在编辑: test_jpype_pyinstaller.py
路径:
/usr/lib/fm-agent/dependencies/aarch64/linux/python3.7/jpype/_pyinstaller/test_jpype_pyinstaller.py
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
import os from pathlib import Path from subprocess import run import jpype import PyInstaller.__main__ fspath = getattr(os, 'fspath', str) example_path = Path(__file__).parent.joinpath('example.py') def test_start_and_stop(tmp_path): name = 'e' dist = tmp_path.joinpath('dist') work = tmp_path.joinpath('build') result = dist.joinpath(name, name) PyInstaller.__main__.run([ '--name', name, '--distpath', fspath(dist), '--workpath', fspath(work), fspath(example_path), ]) run([fspath(result)], check=True, cwd=fspath(tmp_path))
💾 保存文件
← 返回文件管理器