pyinstaller now working
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
import multiprocessing
|
||||
from py_func.tm import _init_api, _remote_print
|
||||
from testium.interpreter.utils.stdout_redirect import stdio_redir
|
||||
from lib.stdout_redirect import stdio_redir
|
||||
|
||||
|
||||
class TcpStdOut:
|
||||
|
||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
||||
import importlib
|
||||
import traceback
|
||||
|
||||
from testium.interpreter.utils.tum_except import ETUMRuntimeError, ETUMSyntaxError
|
||||
from lib.tum_except import ETUMRuntimeError, ETUMSyntaxError
|
||||
from py_func import tm
|
||||
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import math
|
||||
import json
|
||||
import traceback
|
||||
|
||||
from testium.interpreter.utils.jrpc import JsonRpcSrv
|
||||
from testium.interpreter.utils.tum_except import ETUMRuntimeError, print_exception
|
||||
from lib.jrpc import JsonRpcSrv
|
||||
from lib.tum_except import ETUMRuntimeError, print_exception
|
||||
import py_func.tm as tm
|
||||
from py_func.func_call import func_exec
|
||||
|
||||
|
||||
@@ -1,24 +1,8 @@
|
||||
"""tm — proxy module exposing remote-callable API functions.
|
||||
|
||||
This module dynamically exposes functions listed in
|
||||
``interpreter.utils.api.SUPPORTED_API``. Each exposed function is a
|
||||
thin wrapper that forwards the call to a running ``FuncHandler``
|
||||
instance (stored in ``_func_call_thread``).
|
||||
|
||||
Typical usage:
|
||||
>>> from testium.py_func import tm
|
||||
>>> handler = tm._init_api(port)
|
||||
>>> tm.some_api_function(args)
|
||||
|
||||
Only after ``_init_api`` has been called will API functions be able to
|
||||
send requests to the remote handler; otherwise an ``ETUMRuntimeError``
|
||||
is raised.
|
||||
"""
|
||||
|
||||
import sys
|
||||
from py_func.handle import FuncHandler
|
||||
from testium.interpreter.utils.tum_except import ETUMRuntimeError
|
||||
from testium.interpreter.utils.api import SUPPORTED_API
|
||||
from lib.tum_except import ETUMRuntimeError
|
||||
from lib.api import SUPPORTED_API
|
||||
|
||||
thismodule = sys.modules[__name__]
|
||||
# Shared FuncHandler instance used to forward API calls. Remains None
|
||||
|
||||
Reference in New Issue
Block a user