code: def find_config_root(path=sys.argv[0]):
      
      dirname = os.path.dirname(path)
      lastdirname = None
  
      while dirname != lastdirname:
          config_root = os.path.join(dirname, 'config')
          if os.path.exists(config_root):
              return config_root
  
          lastdirname, dirname = dirname, os.path.dirname(dirname)
docs: Finds config root relative to the given file path