def is_same_entry(entry_1, entry_2):
 if (entry_1 == entry_2):
  return True
 if (os.path.realpath(entry_1) == os.path.realpath(entry_2)):
  return True
 if ((os.path.basename(entry_1) == os.path.basename(entry_2)) and (os.path.basename(os.path.dirname(entry_1)) == os.path.basename(os.path.dirname(entry_2))) and os.path.basename(os.path.dirname(entry_1)).startswith('tmp')):
  return True
 return False

def is_same_entry ( entry_1 , entry_2 ) : if ( entry_1 == entry_2 ) : return True if ( os . path . realpath ( entry_1 ) == os . path . realpath ( entry_2 ) ) : return True if ( ( os . path . basename ( entry_1 ) == os . path . basename ( entry_2 ) ) and ( os . path . basename ( os . path . dirname ( entry_1 ) ) == os . path . basename ( os . path . dirname ( entry_2 ) ) ) and os . path . basename ( os . path . dirname ( entry_1 ) ) . startswith ( 'tmp' ) ) : return True return False
return true iff both paths can be considered to point to the same module .