def get_decrypted_file_path(enc_file, config):
    """ returns the path to the decrypted copy of the file
    """
    result = enc_file.replace('.gpg','').replace(config.enc_mainfolder + '/', '').replace('_HOME', '$HOME')
    return result