diff --git a/src/dragongen/theos.py b/src/dragongen/theos.py index 9074c1b0d..864ff7cc4 100644 --- a/src/dragongen/theos.py +++ b/src/dragongen/theos.py @@ -227,7 +227,9 @@ def __init__(self, file_contents: str): self.module['targetvers'] = ver if variable == 'SYSROOT': - self.module['sysroot'] = self.variables[variable] + sysroot = self.variables[variable] + if os.path.exists(sysroot): + self.module['sysroot'] = sysroot files = [] if 'files' in self.module: