#NEWLINE# def shell_config_for( shell , vexrc , environ ) : #NEWLINE# #INDENT# 'return completion config for the named shell.\n    ' #NEWLINE# here = os . path . dirname ( os . path . abspath ( __file__ ) ) #NEWLINE# path = os . path . join ( here , 'shell_configs' , shell ) #NEWLINE# try : #NEWLINE# #INDENT# with open ( path , 'rb' ) as inp : #NEWLINE# #INDENT# data = inp . read ( ) #NEWLINE# #UNINDENT# #UNINDENT# except FileNotFoundError as error : #NEWLINE# #INDENT# if ( error . errno != 2 ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# return b'' #NEWLINE# #UNINDENT# ve_base = vexrc . get_ve_base ( environ ) . encode ( 'ascii' ) #NEWLINE# if ( ve_base and ( not scary_path ( ve_base ) ) and os . path . exists ( ve_base ) ) : #NEWLINE# #INDENT# data = data . replace ( b'$WORKON_HOME' , ve_base ) #NEWLINE# #UNINDENT# return data