]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37641 preserve relative file location in embeddable zip (GH-14884)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Jul 2019 21:55:43 +0000 (14:55 -0700)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2019 21:55:43 +0000 (14:55 -0700)
commit0f211979c29109dcffc3039a24a9d3ecdfd900c9
tree8ff48bcf8aa1703a77b4e86e08749081f54accac
parentc594c274e92dc66afad02fe7a3c08a9b6c5a396d
bpo-37641 preserve relative file location in embeddable zip (GH-14884)

Previously, pyc files in the embeddable distribution reported their
location as <build path>/<file stem>.py. This causes a little confusion
when interpreting stack traces as the file is in a (almost certainly)
incorrect location, and lacks the full relative path to Lib (e.g.
email/mime/image.py will only show image.py).

This change preserves the Lib relative location of the source file as a
path so that stack traces are (hopefully) less misleading and more
informative.

Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit c4cda4369f4b8f33082890d16dfc364a90658ef6)

Co-authored-by: Bill Collins <bilbocollins@gmail.com>
PC/layout/main.py