(self, cmd, path)
return cmd_out
Replace #f in cmd[] by path
Replace #f in cmd[] by path
Replace #f in cmd [] by path
def _replace(self, cmd, path):
        """Replace #f in cmd[] by path"""
        cmd_out = []
        for arg in cmd:
            if "#f" in arg:
                arg = arg.replace("#f", path)
            cmd_out.append(arg)
        return cmd_out
def _replace ( self , cmd , path ) : cmd_out = [ ] for arg in cmd : if "#f" in arg : arg = arg . replace ( "#f" , path ) cmd_out . append ( arg ) return cmd_out