Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def executable_available(executable):
    return find_executable(executable) != None
        


src/f/l/flashbake-0.27/src/flashbake/plugins/uptime.py   flashbake(Download)
    def __run_uptime(self):
        """ For OSes that don't provide procfs, then try to use the updtime command.
 
            Thanks to Tony Giunta for this contribution. """
        if not flashbake.executable_available('uptime'):

src/f/l/flashbake-0.27/src/flashbake/plugins/scrivener.py   flashbake(Download)
    def init(self, config):
        self.get_count = self._get_count_python
        if self.use_textutil:
            if flashbake.executable_available('textutil'):
                self.get_count = self._get_count_textutil

src/f/l/flashbake-HEAD/src/flashbake/plugins/uptime.py   flashbake(Download)
    def __run_uptime(self):
        """ For OSes that don't provide procfs, then try to use the updtime command.
 
            Thanks to Tony Giunta for this contribution. """
        if not flashbake.executable_available('uptime'):

src/f/l/flashbake-HEAD/src/flashbake/plugins/scrivener.py   flashbake(Download)
    def init(self, config):
        self.get_count = self._get_count_python
        if self.use_textutil:
            if flashbake.executable_available('textutil'):
                self.get_count = self._get_count_textutil