crossbar.common.reloader

Classes

TrackingModuleReloader

A tracking module reloader.

Module Contents

class TrackingModuleReloader(use_mtimes=True, snapshot=True)[source]

A tracking module reloader.

This will track modules loaded _after_ a snapshot (point in time), and later allow to force reload of exactly those modules that have been (first) loaded after that point in time.

_use_mtimes = True[source]
log[source]
reload()[source]

Trigger reloading of all modules imported later than the last snapshot established.

:returns int – Number of modules reloaded.

snapshot()[source]

Establish a snapshot - that is, remember which modules are currently loaded. Later, when reload() is called, only modules imported later will be (forcefully) reloaded.