Functions | Variables
tornado::autoreload Namespace Reference

Functions

def _check_file
def _reload
def _reload_on_update
def add_reload_hook
def main
def start
def wait
def watch

Variables

tuple _io_loops = weakref.WeakKeyDictionary()
 _reload_attempted = False
list _reload_hooks = []
string _USAGE
tuple _watched_files = set()
 signal = None

Function Documentation

def tornado.autoreload._check_file (   modify_times,
  path 
) [private]

Definition at line 182 of file autoreload.py.

def tornado.autoreload._reload ( ) [private]

Definition at line 195 of file autoreload.py.

def tornado.autoreload._reload_on_update (   modify_times) [private]

Definition at line 156 of file autoreload.py.

Add a function to be called before reloading the process.

Note that for open file and socket handles it is generally
preferable to set the ``FD_CLOEXEC`` flag (using `fcntl` or
``tornado.platform.auto.set_close_exec``) instead
of using a reload hook to close them.

Definition at line 145 of file autoreload.py.

Command-line wrapper to re-run a script whenever its source changes.

Scripts may be specified by filename or module name::

    python -m tornado.autoreload -m tornado.test.runtests
    python -m tornado.autoreload tornado/test/runtests.py

Running a script with this wrapper is similar to calling
`tornado.autoreload.wait` at the end of the script, but this wrapper
can catch import-time problems like syntax errors that would otherwise
prevent the script from reaching its call to `wait`.

Definition at line 246 of file autoreload.py.

def tornado.autoreload.start (   io_loop = None,
  check_time = 500 
)
Begins watching source files for changes using the given `.IOLoop`. 

Definition at line 110 of file autoreload.py.

Wait for a watched file to change, then restart the process.

Intended to be used at the end of scripts like unit test runners,
to run the tests again after any source file changes (but see also
the command-line interface in `main`)

Definition at line 125 of file autoreload.py.

def tornado.autoreload.watch (   filename)
Add a file to the watch list.

All imported modules are watched by default.

Definition at line 137 of file autoreload.py.


Variable Documentation

tuple tornado::autoreload::_io_loops = weakref.WeakKeyDictionary()

Definition at line 107 of file autoreload.py.

Definition at line 106 of file autoreload.py.

Definition at line 105 of file autoreload.py.

Initial value:
00001 """\
00002 Usage:
00003   python -m tornado.autoreload -m module.to.run [args...]
00004   python -m tornado.autoreload path/to/script.py [args...]
00005 """

Definition at line 239 of file autoreload.py.

Definition at line 104 of file autoreload.py.

Definition at line 101 of file autoreload.py.



rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40