code: def load_settings(path, setttings_only = True):
          
  
  
          # check that path exists
          if not os.path.exists(path):
              print(path)
              raise AttributeError('Path given does not exist!')
  
          tag = '_'.join(os.path.basename(os.path.dirname(os.path.abspath(path) + '/')).split('_')[3:])
  
          search_str = os.path.abspath(path)+'/*'+tag +'.b26'
          fname = glob.glob(search_str)
          if len(fname)>1:
              print(('warning more than one .b26 file found, loading ', fname[0]))
          elif len(fname) == 0:
              print(('no .b26 file found in folder {:s},  check path !'.format(search_str)))
              return
          fname = fname[0]
          fname = Script.check_filename(fname)
          settings = load_b26_file(fname)['scripts']
  
          if len(list(settings.keys())) == 1 and setttings_only:
              settings = settings[list(settings.keys())[0]]['settings']
  
          return settings
docs: loads the settings that has been save with Script.save_b26.
          Args:
              path: path to folder saved by Script.save_b26
              setttings_only: if true returns only the settings if the .b26 file contains only a single script
          Returns:
              a dictionary with the settings