From e8f4e01516290b9d0f75f8ac0f6250c51fca1d3c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 9 Jun 2016 19:28:25 +0530 Subject: [PATCH] [fix] reload bench utils and bench app --- bench/commands/update.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bench/commands/update.py b/bench/commands/update.py index 62a5d4f4..59fd449e 100755 --- a/bench/commands/update.py +++ b/bench/commands/update.py @@ -60,7 +60,7 @@ def update(pull=False, patch=False, build=False, bench=False, auto=False, restar _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force) -def _update(pull=False, patch=False, build=False, bench=False, auto=False, restart_supervisor=False, requirements=False, no_backup=False, upgrade=False, bench_path='.', force=False): +def _update(pull=False, patch=False, build=False, update_bench=False, auto=False, restart_supervisor=False, requirements=False, no_backup=False, upgrade=False, bench_path='.', force=False): conf = get_config(bench=bench_path) version_upgrade = is_version_upgrade(bench=bench_path) @@ -80,9 +80,9 @@ def _update(pull=False, patch=False, build=False, bench=False, auto=False, resta if upgrade and (version_upgrade[0] or (not version_upgrade[0] and force)): pre_upgrade(version_upgrade[1], version_upgrade[2], bench=bench_path) - import utils, app - reload(utils) - reload(app) + import bench.utils, bench.app + reload(bench.utils) + reload(bench.app) if patch: if not no_backup: