mirror of
https://github.com/lutris/lutris
synced 2024-11-02 13:31:16 +00:00
Cast 'true' and 'false' to booleans (Fixes #1245)
This commit is contained in:
parent
187e99e17c
commit
c8f253093b
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue