Different _load_module API

This commit is contained in:
Dave Halter committed 2018-07-05 10:15:49 +02:00
1 parent 508ed7e5b8
commit d8c0d8e5d2
3 files changed
+18 -13

No files matched your search

+2 -2
View File
@@ -198,7 +198,7 @@ def _get_buildout_script_paths(search_path):
def dotted_path_in_sys_path(sys_path, module_path):
"""
Returns the dotted path inside a sys.path.
Returns the dotted path inside a sys.path as a list of names.
"""
# First remove the suffix.
for suffix in all_suffixes():
@@ -221,6 +221,6 @@ def dotted_path_in_sys_path(sys_path, module_path):
for string in split:
if not string or '.' in string:
return None
return '.'.join(split)
return split
return None