From 7329c84ce669a387bfd4a2746e6d1ad2b78490da Mon Sep 17 00:00:00 2001 From: SummerGift Date: Tue, 27 Aug 2019 16:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20env=20root=20=E7=B3=BB=E7=BB=9F=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init_env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init_env.py b/init_env.py index bd7ed32c..73d26925 100644 --- a/init_env.py +++ b/init_env.py @@ -37,8 +37,8 @@ def run_proc(name, env_root): pass def main(): - env_root = sys.argv[1] - p = Process(target=run_proc, args=('upgrade', env_root) ) + env_root = env_root = os.getenv("ENV_ROOT") + p = Process(target=run_proc, args=('upgrade', env_root)) p.start() p.join()