Skip to content

Commit 7a01660

Browse files
committed
explain reloader workaround for egg script
1 parent 5f42acf commit 7a01660

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Unreleased
1616
:pr:`1592`
1717
- Work around an issue in some external debuggers that caused the
1818
reloader to fail. :issue:`1607`
19+
- Work around an issue where the reloader couldn't introspect a
20+
setuptools script installed as an egg. :issue:`1600`
1921

2022

2123
Version 0.15.4

src/werkzeug/_reloader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def _get_args_for_reloading():
7373
# Need to look at main module to determine how it was executed.
7474
__main__ = sys.modules["__main__"]
7575

76+
# The value of __package__ indicates how Python was called. It may
77+
# not exist if a setuptools script is installed as an egg.
7678
if getattr(__main__, "__package__", None) is None:
7779
# Executed a file, like "python app.py".
7880
py_script = os.path.abspath(py_script)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy