INNER CODE UNIT · Python

_signals_dir

kevinpbuckley/VibeUE · Content/Python/vibeue.py:229

def _signals_dir():
    saved = unreal.Paths.convert_relative_path_to_full(unreal.Paths.project_saved_dir())
    return os.path.join(saved, "VibeUE", "Signals")


def _last_result_path(pid=None):
    return os.path.join(_signals_dir(), "python-{}-last.json".format(pid or os.getpid()))


def _runs_path(pid=None):
    return os.path.join(_signals_dir(), "python-{}-runs.jsonl".format(pid or os.getpid()))


def last_python_result(pid=None):
    """The persisted result of the most recent execute_python_code run in THIS editor process, as a
    dict (keys: runId, pid, success, label, output, error, result, execution_time_ms, startedUtc,
    finishedUtc), or None if nothing has been recorded.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…