PCAP Modules and Packages • Set 6
PCAP Modules and Packages Practice Test 6 — 15 questions with explanations. Free, no signup.
A developer has two separate directories on sys.path: /home/user/libs and /opt/libs. Both directories contain a subdirectory 'mypackage' without an __init__.py file. The developer wants to import a module from 'mypackage' that exists only in one of the directories. What concept allows Python to treat these two directories as a single namespace package?