Created
          March 31, 2021 05:12 
        
      - 
      
- 
        Save AnchorBlues/65d2cae157f53159a14eea887d800d33 to your computer and use it in GitHub Desktop. 
    yaml形式で記述した設定ファイルの読み込みを行う関数
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from typing import Dict, Any | |
| import yaml | |
| def read_setting_file(setting_file_path: str) -> Dict[str, Any]: | |
| """ | |
| 設定ファイルの読み込みを行う関数 | |
| """ | |
| with open(setting_file_path, mode='r', encoding='utf-8') as f: | |
| settings = yaml.safe_load(f) | |
| return settings | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment