diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 9a4ffd162..cf452c7ba 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -226,7 +226,7 @@ public: Printf(f_directors, "/* ---------------------------------------------------\n"); Printf(f_directors, " * C++ director class methods\n"); Printf(f_directors, " * --------------------------------------------------- */\n\n"); - Printf(f_directors, "#include \"%s\"\n\n", outfile_h); + Printf(f_directors, "#include \"%s\"\n\n", Swig_file_filename(outfile_h)); } /* If shadow classing is enabled, we're going to change the module name to "_module" */ diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index 175c6e498..63f4f67b9 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -416,7 +416,7 @@ public: Printf(f_directors, "/* ---------------------------------------------------\n"); Printf(f_directors, " * C++ director class methods\n"); Printf(f_directors, " * --------------------------------------------------- */\n\n"); - Printf(f_directors, "#include \"%s\"\n\n", outfile_h); + Printf(f_directors, "#include \"%s\"\n\n", Swig_file_filename(outfile_h)); } Printf(f_header,"#define SWIG_init Init_%s\n", feature);