parameters: (self)
return_statement: return self.bashPath
docstring: getBashPath - Get the path to 'bash
docstring_summary: getBashPath - Get the path to 'bash
docstring_tokens: getBashPath - Get the path to bash
function: def getBashPath(self):
          """getBashPath - Get the path to 'bash'"""
          import os, Util
  
          if self.bashPath is not None:
              return self.bashPath
  
          self.bashPath = Util.which('bash', os.pathsep.join(self.path))
          if self.bashPath is None:
              # Check some known paths.
              for path in ('/bin/bash', '/usr/bin/bash', '/usr/local/bin/bash'):
                  if os.path.exists(path):
                      self.bashPath = path
                      break
  
          if self.bashPath is None:
              self.warning("Unable to find 'bash', running Tcl tests internally.")
              self.bashPath = ''
  
          return self.bashPath
function_tokens: def getBashPath ( self ) : import os , Util if self . bashPath is not None : return self . bashPath self . bashPath = Util . which ( 'bash' , os . pathsep . join ( self . path ) ) if self . bashPath is None : # Check some known paths. for path in ( '/bin/bash' , '/usr/bin/bash' , '/usr/local/bin/bash' ) : if os . path . exists ( path ) : self . bashPath = path break if self . bashPath is None : self . warning ( "Unable to find 'bash', running Tcl tests internally." ) self . bashPath = '' return self . bashPath