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
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
2123Version 0.15.4
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments