From 8327678c44416987293cbe8a494d0081611b4247 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 2 Jan 2024 18:13:28 +0300 Subject: [PATCH] bytebeat_compiler.py: make paths more native --- bytebeat_compiler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index da8aaa8..0beb536 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -8,8 +8,8 @@ import subprocess # Paths PATHS = { - "src_dir": "src/", - "build_dir": "build/", + "src_dir": "src", + "build_dir": "build", "template": "template.c", "substitute": "substituted.c", "output": "render_bytebeat", @@ -21,8 +21,8 @@ PATHS = { PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"]) PATHS["substitute"] = path_join(PATHS["build_dir"], PATHS["substitute"]) PATHS["output"] = path_join(PATHS["build_dir"], PATHS["output"]) -PATHS["fwrite_le_header"] = PATHS["src_dir"] + PATHS["fwrite_le_header"] -PATHS["fwrite_le"] = PATHS["src_dir"] + PATHS["fwrite_le"] +PATHS["fwrite_le_header"] = PATHS["src_dir"] + "/" + PATHS["fwrite_le_header"] +PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"]) # Add `.` directory before all paths for compilation PATHS["template"] = path_join(".", PATHS["template"])