/bin/twnbuild: shortening
This commit is contained in:
		| @@ -28,8 +28,7 @@ if "--" in argv: | |||||||
|  |  | ||||||
| # if no root cmake file is present, infer it from `twn.toml:game.interpreter` | # if no root cmake file is present, infer it from `twn.toml:game.interpreter` | ||||||
| if not Path("CMakeLists.txt").is_file(): | if not Path("CMakeLists.txt").is_file(): | ||||||
|     with open("data/twn.toml", "rb") as f: |     config = tomllib.loads(Path("data/twn.toml").read_text()) | ||||||
|         config = tomllib.load(f) |  | ||||||
|     cmake += ["-S", expandvars(config["game"]["interpreter"])] |     cmake += ["-S", expandvars(config["game"]["interpreter"])] | ||||||
|  |  | ||||||
| run(cmake, check=True) | run(cmake, check=True) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user