portage.package.ebuild._config.env_var_validation module

portage.package.ebuild._config.env_var_validation.validate_cmd_var(v)

Validate an evironment variable value to see if it contains an executable command as the first token. returns (valid, token_list) where ‘valid’ is boolean and ‘token_list’ is the (possibly empty) list of tokens split by shlex.