Qilan2 commited on
Commit
f23db90
·
verified ·
1 Parent(s): 2db4fc8

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -70,7 +70,7 @@ def update():
70
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
71
  os.system("pip install pexpect")
72
  print('-----------更新软件包列表结束-------------')
73
- # update()
74
  from ruamel.yaml import YAML
75
  clear_output(wait=True) # 清除输出
76
 
@@ -137,7 +137,7 @@ def ssh():
137
  os.system("service ssh restart ")
138
  os.system("export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v '/opt/conda/lib' | paste -sd ':') ")
139
  print('-----------SSH结束-------------')
140
- # ssh()
141
  clear_output()
142
 
143
 
 
70
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
71
  os.system("pip install pexpect")
72
  print('-----------更新软件包列表结束-------------')
73
+ update()
74
  from ruamel.yaml import YAML
75
  clear_output(wait=True) # 清除输出
76
 
 
137
  os.system("service ssh restart ")
138
  os.system("export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v '/opt/conda/lib' | paste -sd ':') ")
139
  print('-----------SSH结束-------------')
140
+ ssh()
141
  clear_output()
142
 
143