commit | d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b | [log] [tgz] |
---|---|---|
author | Nick Coghlan <ncoghlan@gmail.com> | Sun Mar 25 23:03:10 2018 +1000 |
committer | GitHub <noreply@github.com> | Sun Mar 25 23:03:10 2018 +1000 |
tree | c3c02b573a85d3a5caa61e1dd5188ba6bec36392 | |
parent | bc77eff8b96be4f035e665ab35c1d06e22f46491 [diff] |
bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) 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.