From 2e9d8957c1111d2a92c42c32c6ab49b03b2fe879 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matos?= Date: Sat, 8 Jun 2019 12:22:26 +0100 Subject: [PATCH] Move python related functions together to make it easy to read the code. --- src/support/os.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/support/os.cpp b/src/support/os.cpp index d435575073..58d9d433a1 100644 --- a/src/support/os.cpp +++ b/src/support/os.cpp @@ -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 -- 2.39.5