]> git.lyx.org Git - lyx.git/blobdiff - src/support/os.cpp
Make GraphicsConverter threadsafe
[lyx.git] / src / support / os.cpp
index aa2da7f1746be1bda515b2cb7cb59e6d4ebc3c8a..b1537e3655984d7d5def27a44d74d7b6e2de33a3 100644 (file)
@@ -60,10 +60,14 @@ int timeout_min()
 }
 
 
-string const python()
+string const python(bool reset)
 {
+       // FIXME THREAD
        // Check whether the first python in PATH is the right one.
        static string command = python2("python -tt");
+       if (reset) {
+               command = python2("python -tt");
+       }
 
        if (command.empty()) {
                // It was not, so check whether we can find it elsewhere in