cpython/Lib/test/test_import
Nick Coghlan ee3784594b
bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) (#6236)
Historically, -m added the empty string as sys.path
zero, meaning it resolved imports against the current
working directory, the same way -c and the interactive
prompt do.

This changes the sys.path initialisation to add the
*starting* working directory as sys.path[0] instead,
such that changes to the working directory while the
program is running will have no effect on imports
when using the -m switch.

(cherry picked from commit d5d9e02dd3)
2018-03-25 23:43:50 +10:00
..
data bpo-30876: Relative import from unloaded package now reimports the package (#2639) 2017-07-12 06:50:03 +03:00
__init__.py bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) (#6236) 2018-03-25 23:43:50 +10:00
__main__.py