#NEWLINE# def unmount( self ) : #NEWLINE# #INDENT# pathname = os . path . abspath ( os . path . join ( self . dirname , self . filename ) ) #NEWLINE# if ( pathname not in sys . path ) : #NEWLINE# #INDENT# logger . debug ( '%s not in path' , pathname ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sys . path . remove ( pathname ) #NEWLINE# if ( pathname in _hook . impure_wheels ) : #NEWLINE# #INDENT# _hook . remove ( pathname ) #NEWLINE# #UNINDENT# if ( not _hook . impure_wheels ) : #NEWLINE# #INDENT# if ( _hook in sys . meta_path ) : #NEWLINE# #INDENT# sys . meta_path . remove ( _hook )