moved code for coherence

This commit is contained in:
2026-02-12 22:21:56 +01:00
parent 04ee42eaa7
commit 210c2d6231
12 changed files with 8 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python
import multiprocessing
from py_func.tm import _init_api, _remote_print
from interpreter.utils.stdout_redirect import stdio_redir
from testium.interpreter.utils.stdout_redirect import stdio_redir
class TcpStdOut:

View File

@@ -5,7 +5,7 @@ from pathlib import Path
import importlib
import traceback
from interpreter.utils.tum_except import ETUMRuntimeError, ETUMSyntaxError
from testium.interpreter.utils.tum_except import ETUMRuntimeError, ETUMSyntaxError
from py_func import tm

View File

@@ -6,8 +6,8 @@ import platform
import math
import json
import traceback
from interpreter.utils.jrpc import JsonRpcSrv
from interpreter.utils.tum_except import ETUMRuntimeError, print_exception
from testium.interpreter.utils.jrpc import JsonRpcSrv
from testium.interpreter.utils.tum_except import ETUMRuntimeError, print_exception
from py_func.func_call import func_exec

View File

@@ -17,8 +17,8 @@ is raised.
import sys
from py_func.handle import FuncHandler
from interpreter.utils.tum_except import ETUMRuntimeError
from interpreter.utils.api import SUPPORTED_API
from testium.interpreter.utils.tum_except import ETUMRuntimeError
from testium.interpreter.utils.api import SUPPORTED_API
thismodule = sys.modules[__name__]
# Shared FuncHandler instance used to forward API calls. Remains None

View File

@@ -14,7 +14,7 @@ from interpreter.utils.constants import TestItemType as cst
class TestItemLuaFunc(TestItem):
"""py_func item usage.
"""lua_func item usage.
func file: func_file.py, func_name: func, param: [$(variable1), [1, 2, 3], true]
"""

View File

@@ -54,9 +54,7 @@ def _is_python_interpreter(path: str, timeout=2) -> bool:
def _sys_python_bin():
sys_python_bin = tm.gd("_sys_python_bin", "")
if sys_python_bin != "":
return sys_python_bin
sys_python_bin = ""
cur_os = tm.OS()
if cur_os == "Windows":
@@ -73,7 +71,6 @@ def _sys_python_bin():
sys_python_bin = ""
continue
tm.setgd("_sys_python_bin", sys_python_bin)
return sys_python_bin