code: def config_dir_setup(filename):
      
      path = os.path.dirname(filename)
      if not os.path.isdir(path):
          Shell.mkdir(path)
docs: sets the config file and makes sure the directory exists if it has not yet been created.
      :param filename: 
      :return: