diff --git a/bin/trytond b/bin/trytond index b4877d15a5..3465661fff 100755 --- a/bin/trytond +++ b/bin/trytond @@ -49,8 +49,11 @@ with commandline.pidfile(options): ssl_args = {} for module in get_module_list(): info = get_module_info(module) - path = os.path.join(info['directory'], 'view', '*.xml') - extra_files.extend(glob.glob(path)) + for ext in ['xml', + 'fodt', 'odt', 'fodp', 'odp', 'fods', 'ods', 'fodg', 'odg', + 'txt', 'html', 'xhtml']: + path = os.path.join(info['directory'], '**', '*.' + ext) + extra_files.extend(glob.glob(path, recursive=True)) if options.coroutine: from gevent.pywsgi import WSGIServer