diff --git a/mccode_antlr/translators/c_header.py b/mccode_antlr/translators/c_header.py index 2a7576a..ebe6cac 100644 --- a/mccode_antlr/translators/c_header.py +++ b/mccode_antlr/translators/c_header.py @@ -275,7 +275,7 @@ def source_file_contents(): #else int traceenabled = 0; #endif -#define {runtime.get("name", "none").upper()} "{escape_str_for_c(include_path)}" +#define {runtime.get("name", "none").upper()} "{escape_str_for_c(str(include_path))}" int defaultmain = {1 if config.get("default_main") else 0}; char instrument_name[] = "{source.name}"; char instrument_source[] = "{escape_str_for_c(source.source)}";