def _relpath_from_file(archive_dir, from_file):
 return os.path.relpath(archive_dir, os.path.dirname(from_file))

def _relpath_from_file ( archive_dir , from_file ) : return os . path . relpath ( archive_dir , os . path . dirname ( from_file ) )
path to a directory from a file .