#NEWLINE# def get_executable( ) : #NEWLINE# #INDENT# name = get_var ( 'vial_python_executable' , 'default' ) #NEWLINE# try : #NEWLINE# #INDENT# return get_var ( 'vial_python_executables' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) [ name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# path = get_virtualenvwrapper_executable ( name ) #NEWLINE# if path : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# if ( name == 'default' ) : #NEWLINE# #INDENT# return sys . executable #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( path == 'python2' ) : #NEWLINE# #INDENT# path = which ( 'python2' ) #NEWLINE# if path : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( name == 'python3' ) : #NEWLINE# #INDENT# path = which ( 'python3' ) #NEWLINE# if path : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return sys . executable