def get_package_paths(package):
 file_attr = get_module_file_attribute(package)
 pkg_dir = os.path.dirname(file_attr)
 pkg_base = remove_suffix(pkg_dir, package.replace('.', os.sep))
 return (pkg_base, pkg_dir)

def get_package_paths ( package ) : file_attr = get_module_file_attribute ( package ) pkg_dir = os . path . dirname ( file_attr ) pkg_base = remove_suffix ( pkg_dir , package . replace ( '.' , os . sep ) ) return ( pkg_base , pkg_dir )
given a package .