From fe87c7e79f5cf31ec0ab0911db88e26abbb39a93 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Sat, 15 Aug 2015 20:35:57 -0700 Subject: [PATCH] setup socketio if frappe > v5 --- bench/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index e0fd32c2..d6386c74 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -77,8 +77,9 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False, setup_auto_update(bench=path) if apps_path: install_apps_from_path(apps_path, bench=path) - setup_socketio(bench=path) FRAPPE_VERSION = get_current_frappe_version(bench=path) + if FRAPPE_VERSION > 5: + setup_socketio(bench=path) build_assets(bench=path) generate_redis_cache_config(bench=path) generate_redis_async_broker_config(bench=path)