|
|
@ -92,9 +92,9 @@ RLOG = logging.getLogger('mitogen.ctx')
|
|
|
|
# there are some cases where modules are loaded in memory only, such as
|
|
|
|
# there are some cases where modules are loaded in memory only, such as
|
|
|
|
# ansible collections, and the module "filename" is something like __synthetic__
|
|
|
|
# ansible collections, and the module "filename" is something like __synthetic__
|
|
|
|
# which doesn't actually exist
|
|
|
|
# which doesn't actually exist
|
|
|
|
SPECIAL_FILE_PATHS = [
|
|
|
|
SPECIAL_FILE_PATHS = {
|
|
|
|
"__synthetic__"
|
|
|
|
"__synthetic__",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _stdlib_paths():
|
|
|
|
def _stdlib_paths():
|
|
|
@ -198,9 +198,8 @@ def _py_filename(path):
|
|
|
|
return path
|
|
|
|
return path
|
|
|
|
|
|
|
|
|
|
|
|
basepath = os.path.basename(path)
|
|
|
|
basepath = os.path.basename(path)
|
|
|
|
for filename in SPECIAL_FILE_PATHS:
|
|
|
|
if basepath in SPECIAL_FILE_PATHS:
|
|
|
|
if basepath == filename:
|
|
|
|
return path
|
|
|
|
return path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _get_core_source():
|
|
|
|
def _get_core_source():
|
|
|
|