app: swap ':' path separator to ';' on Windows.

The python.env file sets a ':' separator for GI_TYPELIB_PATH environment
variable, which breaks finding the correct typelib files in the CI, when also
manually setting a previous value for this environment variable.

I'm not entirely sure the rule of swapping ':' for ';' is universally true on
Windows, whichever the variable. Let's hope that it is.
This commit is contained in:
Jehan 2024-03-06 09:19:42 +01:00
parent f6d4ebb286
commit c6a6449dd0
1 changed files with 5 additions and 0 deletions

View File

@ -341,6 +341,11 @@ gimp_environ_table_load_env_file (GimpEnvironTable *environ_table,
separator = name;
name = q + 1;
#ifdef G_OS_WIN32
if (g_strcmp0 (separator, ":") == 0)
separator = ";";
#endif
}
if (! gimp_environ_table_legal_name (name))