diff options
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
| -rw-r--r-- | Lib/importlib/_bootstrap.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 0afe6a5..a95d8b6 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -1171,6 +1171,11 @@ class ExtensionFileLoader: """Return None as extension modules have no source code.""" return None + @_check_name + def get_filename(self, fullname): + """Return the path to the source file as found by the finder.""" + return self.path + class _NamespacePath: """Represents a namespace package's path. It uses the module name |
