if path.endswith('.xml'):
_logger.info('autoreload: xml change detected, voiding orm cache')
# TODO: void orm caches
- elif config['auto_reload'] and path.endswith('.py'):
+ elif config['dev_mode'] and path.endswith('.py'):
try:
source = open(path, 'rb').read() + '\n'
compile(source, path, 'exec')
# Advanced options
group = optparse.OptionGroup(parser, "Advanced options")
- if os.name == 'posix':
- group.add_option('--auto-reload', dest='auto_reload', action='store_true', my_default=False, help='enable auto reload')
group.add_option('--dev', dest='dev_mode', action='store_true', my_default=False, help='enable developper mode')
group.add_option('--debug', dest='debug_mode', action='store_true', my_default=False, help='enable debug mode')
group.add_option("--stop-after-init", action="store_true", dest="stop_after_init", my_default=False,
]
posix_keys = [
- 'auto_reload', 'workers',
+ 'workers',
'limit_memory_hard', 'limit_memory_soft',
'limit_time_cpu', 'limit_time_real', 'limit_request',
]