Replace $${python} directly in the converter constructor

This commit is contained in:
José Matos 2022-01-27 18:32:57 +00:00
parent b73ab0256d
commit 79a2ac575c
2 changed files with 8 additions and 2 deletions

View File

@ -148,6 +148,12 @@ void Converter::readFlags()
}
void Converter::setCommand(std::string const & command)
{
command_ = subst(command, token_python, os::python());
}
Converter const * Converters::getConverter(string const & from,
string const & to) const
{

View File

@ -58,7 +58,7 @@ public:
///
std::string const command() const { return command_; }
///
void setCommand(std::string const & command) { command_ = command; }
void setCommand(std::string const & command);
///
std::string const flags() const { return flags_; }
///