Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【更新】在 env 根目录下生成更新 log, 而不是在打开 env 的文件夹下 #101

Merged
merged 2 commits into from
Sep 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion init_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@

def run_proc(name, env_root):
exec_file = os.path.join(env_root, "tools\scripts\env.py")
log_std = os.path.join(env_root, "env_log_std")
log_err = os.path.join(env_root, "env_log_err")

try:
os.system("python %s package --upgrade 1>std_null 2>err_null"%exec_file)
os.system("python %s package --upgrade 1>%s 2>%s"%(exec_file, log_std, log_err))
except Exception, e:
print("Auto upgrade failed, please check your network.")
pass
Expand Down