Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A small python script to watch a directory for changes and reload a process when a change is detected.
Branch: master

Merge pull request #1 from brandonbloom/patch-1

Fixed markdown for numbered list and command lines.
latest commit d7e4f78b05
@stevekrenzel authored
Failed to load latest commit information.
README.md Fixed markdown for numbered list and command lines.
autoreload Adding autoreload script.

README.md

Autoreload is a simple python script to watch a directory for changed files and restarts a process when the change is detected.

To use autoreload:

  1. Make sure the script is executable by running chmod +x autoreload
  2. Run ./autoreload <command to run and reload>

For instance, I run ./autoreload python main.py. This first runs python main.py, then watches the current working directory and all subdirectories for changes. If any changes are detected, then the process is killed, and started all over again.

Something went wrong with that request. Please try again.