Check if the server is running as a subprocess within the Werkzeug reloader. .. versionadded:: 0.10
()
| 950 | |
| 951 | |
| 952 | def is_running_from_reloader() -> bool: |
| 953 | """Check if the server is running as a subprocess within the |
| 954 | Werkzeug reloader. |
| 955 | |
| 956 | .. versionadded:: 0.10 |
| 957 | """ |
| 958 | return os.environ.get("WERKZEUG_RUN_MAIN") == "true" |
| 959 | |
| 960 | |
| 961 | def run_simple( |