From 4e38cf152430c6293319642099f162299acde922 Mon Sep 17 00:00:00 2001 From: Benjamin Piwowarski Date: Fri, 14 Mar 2014 11:48:40 +0100 Subject: [PATCH] Fix problem with python and change of PATH - waits that lyxrc has been read before finding python - when the PATH changes, resets the value --- src/support/Package.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/support/Package.cpp b/src/support/Package.cpp index b4b0e1493d..f5ee5d5436 100644 --- a/src/support/Package.cpp +++ b/src/support/Package.cpp @@ -154,8 +154,9 @@ Package::Package(string const & command_line_arg0, std::string const & Package::configure_command() const { if (configure_command_.empty()) { + std::string &command = const_cast(configure_command_); FileName const configure_script(addName(system_support().absFileName(), "configure.py")); - configure_command_ = os::python() + ' ' + + command = os::python() + ' ' + quoteName(configure_script.toFilesystemEncoding()) + with_version_suffix() + " --binary-dir=" + quoteName(FileName(binary_dir().absFileName()).toFilesystemEncoding()); -- 2.39.2