mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
* Try to match the module name pattern with module names constructed starting from different parent directories of the filename. E.g., for "/path/to/package/module" try to match with "path.to.package.module", "to.package.module", "package.module" and "module". * Ignore trailing "/__init__.py". * Ignore trailing ".pyw" on Windows. * Keep matching with the full filename (without optional ".py" extension) for compatibility. * Only ignore the case of the ".py" extension on Windows. |
||
|---|---|---|
| .. | ||
| data | ||
| __init__.py | ||
| __main__.py | ||