Cast 'true' and 'false' to booleans (Fixes #1245)

This commit is contained in:
Mathieu Comandon 2018-10-29 18:22:28 -07:00
parent 187e99e17c
commit c8f253093b

View file

@ -698,6 +698,11 @@ class ScriptInterpreter(CommandsMixin):
def _substitute(self, template_string):
"""Replace path aliases with real paths."""
if template_string.lower() == 'true':
return True
if template_string.lower() == 'false':
return False
replacements = {
"GAMEDIR": self.target_path,
"CACHE": self.cache_path,