Commit e3cc48f2 authored by Christian Persch's avatar Christian Persch

resources: compiler: Respect absolute paths

When a <file> already has an absolute path, use it directly instead of trying to
locate it in the --sourcedir directories.
parent 8f8fc836
......@@ -184,6 +184,9 @@ find_file (const gchar *filename)
gchar *real_file;
gboolean exists;
if (g_path_is_absolute (filename))
return g_strdup (filename);
/* search all the sourcedirs for the correct files in order */
for (i = 0; sourcedirs[i] != NULL; i++)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment