Auto reload the server when tryton.cfg files are modified

Since 6eb1a23b7457 the tryton.cfg files contains the model to register.
Therefore if they change, the server must be reloaded.
This commit is contained in:
Cédric Krier
2025-12-03 12:10:53 +01:00
parent 2c0d096001
commit 815bd08c8e
+1 -1
View File
@@ -69,7 +69,7 @@ with commandline.pidfile(options):
if options.dev and not options.coroutine:
for module in get_modules():
info = get_module_info(module)
for ext in ['xml',
for ext in ['cfg', 'xml',
'fodt', 'odt', 'fodp', 'odp', 'fods', 'ods', 'fodg', 'odg',
'txt', 'html', 'xhtml']:
path = os.path.join(info['directory'], '**', '*.' + ext)