From 116f5fd75e3b4be0bc05518ba77325844a1b0cbf Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 19 Jan 2019 15:20:51 +0800 Subject: [PATCH] Update common.py --- class/core/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/class/core/common.py b/class/core/common.py index ae9622aeb..4c4effdd4 100755 --- a/class/core/common.py +++ b/class/core/common.py @@ -50,6 +50,7 @@ def initInitD(): if not public.isAppleSystem(): initd_bin = '/etc/init.d/mw' if not os.path.exists(initd_bin): + import shutil shutil.copyfile(script_bin, initd_bin) public.execShell('chmod +x ' + initd_bin)