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",