Skip to content

Commit

Permalink
[fix]:修复ubuntu18 yaml错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed May 27, 2022
1 parent 7b6f1fb commit ab33c4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ def get_default_queue(self,param_file_path):
config_data = f.read()

if config_data == None: return choose_queue
config_yaml = yaml.load(config_data,Loader=yaml.FullLoader)

if hasattr(yaml,'FullLoader'):
config_yaml = yaml.load(config_data,Loader=yaml.FullLoader)
else:
config_yaml = yaml.load(config_data)

for choose in config_yaml['chooses']:
choose_queue.put(choose)
for choose in config_yaml['chooses']:
choose_queue.put(choose)

Expand Down

0 comments on commit ab33c4b

Please sign in to comment.