def inv_entry_to_path(data):
path_tuple = data[<NUM_LIT:2>].split("<STR_LIT:#>")<EOL>if len(path_tuple) > <NUM_LIT:1>:<EOL><INDENT>path_str = "<STR_LIT:#>".join((path_tuple[<NUM_LIT:0>], path_tuple[-<NUM_LIT:1>]))<EOL><DEDENT>else:<EOL><INDENT>path_str = data[<NUM_LIT:2>]<EOL><DEDENT>return path_str<EOL>
Determine the path from the intersphinx inventory entry

Discard the anchors between head and tail to make it
compatible with situations where extra meta information is encoded.