#NEWLINE# def _sbt_binary_exists( ) : #NEWLINE# #INDENT# def check_file( fullpath ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# os . stat ( fullpath ) #NEWLINE# return True #NEWLINE# #UNINDENT# except os . error : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if check_file ( _sbt_binary ( ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# for pathdir in os . environ [ 'PATH' ] . split ( os . pathsep ) : #NEWLINE# #INDENT# fname = os . path . join ( pathdir , _sbt_binary ( ) ) #NEWLINE# if check_file ( pathdir ) : #NEWLINE# #INDENT# return True