|
|
@ -769,14 +769,13 @@ class PushFileService(Service):
|
|
|
|
# load them up in sys.path for later import
|
|
|
|
# load them up in sys.path for later import
|
|
|
|
# ensure we don't add to sys.path the same path we've already seen
|
|
|
|
# ensure we don't add to sys.path the same path we've already seen
|
|
|
|
for extra_path in extra_sys_paths:
|
|
|
|
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
|
|
|
|
# store extra paths in cached set for O(1) lookup
|
|
|
|
if extra_path not in self._extra_sys_paths:
|
|
|
|
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
|
|
|
|
# not sure if it matters but we could prepend to sys.path instead if we need to
|
|
|
|
sys.path.append(extra_path)
|
|
|
|
sys.path.append(extra_path)
|
|
|
|
self._extra_sys_paths.add(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())
|
|
|
|
@expose(policy=AllowParents())
|
|
|
|
@arg_spec({
|
|
|
|
@arg_spec({
|
|
|
|