(program_name)
return {'Main': new_name, 'Backup': backup_name, 'Temp': temp_name, 'Corrupted': corrupted_name,
            'BackupFolder': backup_folder, 'TempFolder': temp_folder, 'CorruptedFolder': corrupted_folder}
Create file paths from the global variables.
Create file paths from the global variables.
Create file paths from the global variables .
def _get_paths(program_name):
    """Create file paths from the global variables."""
    if program_name is None:
        program_name = DEFAULT_NAME
    elif isinstance(program_name, (list, tuple)):
        program_name = program_name[0]
    
    name = get_data_filename(program_name)
    new_name = '{}/{}'.format(DATA_FOLDER, name)
    backup_folder = '{}/{}'.format(DATA_FOLDER, DATA_BACKUP_FOLDER)
    backup_name = '{}/{}'.format(backup_folder, name)
    temp_folder = '{}/{}'.format(DATA_FOLDER, DATA_TEMP_FOLDER)
    temp_name = '{}/{}'.format(temp_folder, name)
    corrupted_folder = '{}/{}'.format(DATA_FOLDER, DATA_CORRUPT_FOLDER)
    corrupted_name = '{}/{}'.format(corrupted_folder, name)
    
    return {'Main': new_name, 'Backup': backup_name, 'Temp': temp_name, 'Corrupted': corrupted_name,
            'BackupFolder': backup_folder, 'TempFolder': temp_folder, 'CorruptedFolder': corrupted_folder}
def _get_paths ( program_name ) : if program_name is None : program_name = DEFAULT_NAME elif isinstance ( program_name , ( list , tuple ) ) : program_name = program_name [ 0 ] name = get_data_filename ( program_name ) new_name = '{}/{}' . format ( DATA_FOLDER , name ) backup_folder = '{}/{}' . format ( DATA_FOLDER , DATA_BACKUP_FOLDER ) backup_name = '{}/{}' . format ( backup_folder , name ) temp_folder = '{}/{}' . format ( DATA_FOLDER , DATA_TEMP_FOLDER ) temp_name = '{}/{}' . format ( temp_folder , name ) corrupted_folder = '{}/{}' . format ( DATA_FOLDER , DATA_CORRUPT_FOLDER ) corrupted_name = '{}/{}' . format ( corrupted_folder , name ) return { 'Main' : new_name , 'Backup' : backup_name , 'Temp' : temp_name , 'Corrupted' : corrupted_name , 'BackupFolder' : backup_folder , 'TempFolder' : temp_folder , 'CorruptedFolder' : corrupted_folder }