Bugfix: | on strings isn't defined

This commit is contained in:
Reid 'arrdem' McKenzie 2023-05-30 16:20:18 -06:00
parent e90055e3bd
commit 196c0fc9a5

View file

@ -102,7 +102,7 @@ def expandvars(s: str) -> str:
return os.uname()[1] return os.uname()[1]
elif var == "${home}": elif var == "${home}":
return os.path.expanduser("~") return os.path.expanduser("~")
elif var == "${uname}" | "${sysname}": elif var == "${uname}" or var == "${sysname}":
return platform.system().lower() return platform.system().lower()
elif var == "${arch}": elif var == "${arch}":
return platform.machine() return platform.machine()