From 4d33d7bcf72e19f1610ce86dee1cf99e96989c14 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sun, 12 Nov 2023 15:17:24 +0200 Subject: [PATCH] Move into wexpect_venv namespace --- {wexpect => wexpect_venv}/__init__.py | 0 {wexpect => wexpect_venv}/__main__.py | 4 ++-- {wexpect => wexpect_venv}/console_reader.py | 0 {wexpect => wexpect_venv}/host.py | 0 {wexpect => wexpect_venv}/legacy_wexpect.py | 2 +- {wexpect => wexpect_venv}/wexpect_util.py | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename {wexpect => wexpect_venv}/__init__.py (100%) rename {wexpect => wexpect_venv}/__main__.py (96%) rename {wexpect => wexpect_venv}/console_reader.py (100%) rename {wexpect => wexpect_venv}/host.py (100%) rename {wexpect => wexpect_venv}/legacy_wexpect.py (99%) rename {wexpect => wexpect_venv}/wexpect_util.py (100%) diff --git a/wexpect/__init__.py b/wexpect_venv/__init__.py similarity index 100% rename from wexpect/__init__.py rename to wexpect_venv/__init__.py diff --git a/wexpect/__main__.py b/wexpect_venv/__main__.py similarity index 96% rename from wexpect/__main__.py rename to wexpect_venv/__main__.py index abc8eb5..d0fb822 100644 --- a/wexpect/__main__.py +++ b/wexpect_venv/__main__.py @@ -3,8 +3,8 @@ import sys import logging import traceback -import wexpect.console_reader as console_reader -import wexpect.wexpect_util as wexpect_util +import wexpect_venv.console_reader as console_reader +import wexpect_venv.wexpect_util as wexpect_util logger = logging.getLogger('wexpect') diff --git a/wexpect/console_reader.py b/wexpect_venv/console_reader.py similarity index 100% rename from wexpect/console_reader.py rename to wexpect_venv/console_reader.py diff --git a/wexpect/host.py b/wexpect_venv/host.py similarity index 100% rename from wexpect/host.py rename to wexpect_venv/host.py diff --git a/wexpect/legacy_wexpect.py b/wexpect_venv/legacy_wexpect.py similarity index 99% rename from wexpect/legacy_wexpect.py rename to wexpect_venv/legacy_wexpect.py index 45607d4..e4b5b4e 100644 --- a/wexpect/legacy_wexpect.py +++ b/wexpect_venv/legacy_wexpect.py @@ -1195,7 +1195,7 @@ class Wtty: commandLine = '"%s" %s "%s"' % (python_executable, ' '.join(pyargs), f"import sys; sys.path = {spath} + sys.path;" - f"args = {args}; import wexpect;" + f"args = {args}; import wexpect_venv as wexpect;" f"wexpect.ConsoleReader(wexpect.join_args(args), {pid}, {tid}, cp={cp}, logdir={logdir})" ) diff --git a/wexpect/wexpect_util.py b/wexpect_venv/wexpect_util.py similarity index 100% rename from wexpect/wexpect_util.py rename to wexpect_venv/wexpect_util.py