lib/util/fs.py
def generate_binpaths():
        '''
        Provides an iterator for all possible absolute locations for binpath.
        Platform dependent suffixes are automatically added, if applicable.
        '''
        should_add_win_exts = os.name == 'nt'
        win_exts = ['.exe', '.cmd', '.bat']
        for pathdir in itertools.chain([workingdir], pathdirs):
            assert isinstance(pathdir, str), \
                '[internal] pathdir is not a str: %r' % pathdir
            yield os.path.join(pathdir, binpath)
            if should_add_win_exts:
                for win_ext in win_exts:
                    filebasename = '%s%s' % (binpath, win_ext)
                    yield os.path.join(pathdir, filebasename)

        Provides an iterator for all possible absolute locations for binpath.
        Platform dependent suffixes are automatically added, if applicable.
        
Provides an iterator for all possible absolute locations for binpath.
Platform dependent suffixes are automatically added, if applicable.
Provides an iterator for all possible absolute locations for binpath . Platform dependent suffixes are automatically added if applicable .
def generate_binpaths():
        should_add_win_exts = os.name == 'nt'
        win_exts = ['.exe', '.cmd', '.bat']
        for pathdir in itertools.chain([workingdir], pathdirs):
            assert isinstance(pathdir, str), \
                '[internal] pathdir is not a str: %r' % pathdir
            yield os.path.join(pathdir, binpath)
            if should_add_win_exts:
                for win_ext in win_exts:
                    filebasename = '%s%s' % (binpath, win_ext)
                    yield os.path.join(pathdir, filebasename)
def generate_binpaths ( ) : should_add_win_exts = os . name == 'nt' win_exts = [ '.exe' , '.cmd' , '.bat' ] for pathdir in itertools . chain ( [ workingdir ] , pathdirs ) : assert isinstance ( pathdir , str ) , '[internal] pathdir is not a str: %r' % pathdir yield os . path . join ( pathdir , binpath ) if should_add_win_exts : for win_ext in win_exts : filebasename = '%s%s' % ( binpath , win_ext ) yield os . path . join ( pathdir , filebasename )
Provides an iterator for all possible absolute locations for binpath.
Provides an iterator for all possible absolute locations for binpath .
'''
        Provides an iterator for all possible absolute locations for binpath.
        Platform dependent suffixes are automatically added, if applicable.
        '''