Skip to content

Reloader option to exclude watch paths #1333

@rotemdan

Description

@rotemdan

Seems like the server gets reloaded when gen_py caching files (created by the win32com module) are written or modified (in a temporary directory):

 * Detected change in 'C:\\Users\\X\\AppData\\Local\\Temp\\gen_py\\3.6\\C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x4\\__pycache__\\SpVoice.cpython-36.pyc', reloading
 * Detected change in 'C:\\Users\\X\\AppData\\Local\\Temp\\gen_py\\3.6\\C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x4\\__pycache__\\_ISpeechVoiceEvents.cpython-36.pyc', reloading

This seems to happen quite often. Any way for this to be prevented?

(Using Python 3.6, Flask 1.0.2, Werkzeug 0.14.1 on Win10 64bit. FLASK_ENV=debug, FLASK_DEBUG=1)

Edit: this also causes occasional cache corruptions (causing runtime errors and requiring wiping the gen_py directory to resolve) since it abruptly cuts out the process while it is writing (usually several files) to disk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions