(cfg_name, directory)
return os.path.join(directory, json_file)
Get the name of the configuration JSON file
Get the name of the configuration JSON file
Get the name of the configuration JSON file
def _cfg_file_name(cfg_name, directory):
    """Get the name of the configuration JSON file"""
    # Remove paths
    basename = os.path.basename(cfg_name)
    # Remove extension
    noext = os.path.splitext(basename)[0]
    # Add JSON extension
    json_file = noext + ".json"
    return os.path.join(directory, json_file)
def _cfg_file_name ( cfg_name , directory ) : # Remove paths basename = os . path . basename ( cfg_name ) # Remove extension noext = os . path . splitext ( basename ) [ 0 ] # Add JSON extension json_file = noext + ".json" return os . path . join ( directory , json_file )