From 4dea09a92458f59741ce603746dc4e92e3c30a79 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Tue, 22 Sep 2020 19:29:37 -0700 Subject: [PATCH] check sys.path issue --- mitogen/service.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mitogen/service.py b/mitogen/service.py index 8fe48922..82372bcc 100644 --- a/mitogen/service.py +++ b/mitogen/service.py @@ -769,14 +769,13 @@ class PushFileService(Service): # load them up in sys.path for later import # ensure we don't add to sys.path the same path we've already seen for extra_path in extra_sys_paths: - # jjj - # validate extra_sys_paths are what we expect - raise ValueError(extra_sys_paths) # store extra paths in cached set for O(1) lookup if extra_path not in self._extra_sys_paths: # not sure if it matters but we could prepend to sys.path instead if we need to sys.path.append(extra_path) self._extra_sys_paths.add(extra_path) + # see if this is an issue with python2 loading packages + sys.path.append("/Users/runner/.ansible/collections/ansible_collections/ansible/posix") @expose(policy=AllowParents()) @arg_spec({