You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening special modules (such as os.path) through the "Open Module" dialog, an ImportError is raised. The fix is to catch this error and retry the loader call without the "name" argument (hence opening the true file).
The problem is that there is no file os/path.py. When I try to load os.path, nothing happens, not even a "Module not found" message, as with idlelib.rrr, for instance. If I try 'os.pathx', I get "Error: __path__ attribute not found on 'os' while trying to find 'os.pathx'".
A new test, without the patch, fails with
ImportError: loader for ntpath cannot handle os.path
I am going to assume that calling it with the module name is usually a good idea, so that adding a separate call without is a good idea.