D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
panopta-agent
/
dependencies
/
linux
/
python3.8
/
jpype
/
_pyinstaller
/
Filename :
test_jpype_pyinstaller.py
back
Copy
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))
Name
Size
Last Modified
Owner
Permissions
Actions
entry_points.py
0.243
KB
December 12 2022 3:40:22
panopta-agent
0644
example.py
0.086
KB
December 12 2022 3:40:22
panopta-agent
0644
hook-jpype.py
0.19
KB
December 12 2022 3:40:22
panopta-agent
0644
test_jpype_pyinstaller.py
0.605
KB
December 12 2022 3:40:22
panopta-agent
0644
2017 © D7net | D704T team