
Answer-first summary for fast verification
Answer: `sys.path`
The correct answer is **sys.path**. * **sys.path** is a list of strings that specifies the search path for modules. It is initialized from the environment variable `PYTHONPATH`, plus installation-dependent defaults. The interpreter searches these directories in order until the module is found. * **os.path** is a module used for common pathname manipulations (like `join` or `split`) and does not serve as the search path for the import system. * **importlib.resource_path** is not a standard variable; while `importlib` is the engine behind `import`, it does not use this specific name to define search directories. * **pypi.path** and **pylib.source** are not standard Python library variables and do not play a role in the module resolution process.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.