'Simple logic to get the base args in different environments where:
* sqlmap is in PATH
* The embedded sqlmap is not available
:see: https://github.com/andresriancho/w3af/issues/10538
:return: The base args to execute sqlmap in this environment, or raise
an exception if something is wrong.'

def _get_base_args(self):

    if os.path.exists(self.SQLMAP_LOCATION):
        return (self.SQLMAP_LOCATION, self.EMBEDDED_DEFAULT_ARGS)
    if (not which('sqlmap')):
        raise RuntimeError('The    "sqlmap"    command    is    not    in    PATH')
    return (os.getcwd(), self.INSTALLED_DEFAULT_ARGS)
