(self, path="", rootdir="", volumes="", workdir="",
                  cont2host=False)
return self._find_exec(path, rootdir, volumes, workdir, cont2host)
Find an executable pathname
Find an executable pathname
Find an executable pathname
def find_exec(self, path="", rootdir="", volumes="", workdir="",
                  cont2host=False):
        """Find an executable pathname"""
        if not path:
            path = os.getenv("PATH") + ":" + Config.conf['root_path']
        if rootdir:
            rootdir += "/"
        if is_genstr(path):
            if "=" in path:
                path = "".join(path.split("=", 1)[1:])
            path = path.split(":")
        if not isinstance(path, (list, tuple)):
            return ""
        return self._find_exec(path, rootdir, volumes, workdir, cont2host)
def find_exec ( self , path = "" , rootdir = "" , volumes = "" , workdir = "" , cont2host = False ) : if not path : path = os . getenv ( "PATH" ) + ":" + Config . conf [ 'root_path' ] if rootdir : rootdir += "/" if is_genstr ( path ) : if "=" in path : path = "" . join ( path . split ( "=" , 1 ) [ 1 : ] ) path = path . split ( ":" ) if not isinstance ( path , ( list , tuple ) ) : return "" return self . _find_exec ( path , rootdir , volumes , workdir , cont2host )