]> git.lyx.org Git - features.git/commitdiff
Move python related functions together to make it easy to read the code.
authorJosé Matos <jamatos@lyx.org>
Sat, 8 Jun 2019 11:22:26 +0000 (12:22 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:33 +0000 (15:48 +0200)
src/support/os.cpp

index d435575073f018b5f65225ea1c6df7001b70249c..58d9d433a151dbff3a675c747babbb08e9ea1c40 100644 (file)
@@ -40,6 +40,12 @@ namespace lyx {
 namespace support {
 namespace os {
 
+int timeout_min()
+{
+       return 3;
+}
+
+
 static string const python23(string const & binary, bool verbose = false)
 {
        const string version_info = " -c 'from __future__ import print_function;import sys; print(sys.version_info[:2], end=\"\")'";
@@ -65,12 +71,6 @@ static string const python23(string const & binary, bool verbose = false)
 }
 
 
-int timeout_min()
-{
-       return 3;
-}
-
-
 string const python(bool reset)
 {
        // This function takes inspiration from PEP 394 and PEP 397