]> git.lyx.org Git - lyx.git/blobdiff - src/support/os.cpp
Make GraphicsConverter threadsafe
[lyx.git] / src / support / os.cpp
index 38c637476822dcd24dc54276ea09af99b84e2eda..b1537e3655984d7d5def27a44d74d7b6e2de33a3 100644 (file)
@@ -56,14 +56,18 @@ static string const python2(string const & binary, bool verbose = false)
 
 int timeout_min()
 {
-       return 30;
+       return 3;
 }
 
 
-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