From be5c7186ecea674531268fb52f33b0b1f1885422 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 26 Aug 2024 22:54:02 +0300 Subject: [PATCH] bytebeat_compiler.py: fix extra dots in paths --- bytebeat_compiler.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 9c00769..277067c 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -30,17 +30,16 @@ PATHS = { "include_directory": "include" } +# Add `.` directory before all paths for compilation +for key in ["src_dir", "bin_dir", "include_directory"]: + PATHS[key] = path_join(".", PATHS[key]) + # Resolve paths PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"]) PATHS["substitute_kept"] = path_join(PATHS["bin_dir"], PATHS["substitute"]) PATHS["output_kept"] = path_join(PATHS["bin_dir"], PATHS["output"]) PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"]) -# Add `.` directory before all paths for compilation -for key in ["template", "substitute", "output", "fwrite_le", - "include_directory"]: - PATHS[key] = path_join(".", PATHS[key]) - # Default parameters DEFAULT_PARAMETERS = { "CC": "cc",