Skip to content

[FEATURE] Watch a directory recursively #27

@pythoninthegrass

Description

@pythoninthegrass

Is your feature request related to a problem? Please describe.

Not quite. Most of my business logic lives in subdirectories but is orchestrated through a main.py and config.py in the top-level of the repo. Since tkreload only watches one file or the entrypoint, it misses the child directory (module) changes.

Describe the solution you'd like

Hot reload using a directory or multiple files (e.g., tkreload ., tkreload main.py core/ static/ utils/). If an executable file isn't automatically detected, could prompt the user for the filename, use kwargs, or env vars.

Describe alternatives you've considered

Could probably hack something together using the watchdog library, but tkreload works great for single files as-is.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions