mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Replace environment variables in PATH prefix
The PATH prefix modified through the GUI was set without replacing embedded environment variables. This might have caused problems on Windows with external python installations.
This commit is contained in:
parent
ead498f0a6
commit
472bdf5910
@ -2936,7 +2936,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
||||
case LyXRC::RC_PARAGRAPH_MARKERS:
|
||||
case LyXRC::RC_PATH_PREFIX:
|
||||
if (lyxrc_orig.path_prefix != lyxrc_new.path_prefix) {
|
||||
prependEnvPath("PATH", lyxrc_new.path_prefix);
|
||||
prependEnvPath("PATH", replaceEnvironmentPath(lyxrc_new.path_prefix));
|
||||
// Resets python path
|
||||
support::os::python(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user