diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-06-03 00:50:12 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-06-03 00:50:12 +0200 |
| commit | 7ae36a21d031c3d71e9015823c61380f88b0595d (patch) | |
| tree | 8fb619e30b5a7f03f7b7416343ab796f53d74aec /src_py | |
| parent | c81812414c1b55352aac2c9bdc9b7f4951f2c6ce (diff) | |
requirements update
Diffstat (limited to 'src_py')
| -rw-r--r-- | src_py/opcut/server.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src_py/opcut/server.py b/src_py/opcut/server.py index 2ae76a2..cd7d048 100644 --- a/src_py/opcut/server.py +++ b/src_py/opcut/server.py @@ -1,5 +1,6 @@ from pathlib import Path import asyncio +import platform import subprocess import sys @@ -143,10 +144,14 @@ async def _generate_output(output_type, panel, result): def _get_calculate_cmd(native): if native and sys.platform == 'linux': - return [str(common.package_path / 'bin/linux-opcut-calculate')] + if platform.machine() == 'x86_64': + return [str(common.package_path / + 'bin/linux_x86_64-opcut-calculate')] elif native and sys.platform == 'win32': - return [str(common.package_path / 'bin/windows-opcut-calculate.exe')] + if platform.machine() == 'amd64': + return [str(common.package_path / + 'bin/windows_amd64-opcut-calculate.exe')] return [sys.executable, '-m', 'opcut', 'calculate'] |
