File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ Unreleased
16
16
:pr: `1592 `
17
17
- Work around an issue in some external debuggers that caused the
18
18
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 `
19
21
20
22
21
23
Version 0.15.4
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ def _get_args_for_reloading():
73
73
# Need to look at main module to determine how it was executed.
74
74
__main__ = sys .modules ["__main__" ]
75
75
76
+ # The value of __package__ indicates how Python was called. It may
77
+ # not exist if a setuptools script is installed as an egg.
76
78
if getattr (__main__ , "__package__" , None ) is None :
77
79
# Executed a file, like "python app.py".
78
80
py_script = os .path .abspath (py_script )
You can’t perform that action at this time.
0 commit comments