diff options
author | Pavel Sanda <ps@twin.jikos.cz> | 2012-01-21 21:30:33 +0100 |
---|---|---|
committer | Pavel Sanda <ps@twin.jikos.cz> | 2012-01-21 21:30:33 +0100 |
commit | 9b9b325d36fb5f1d98400baafe4cd95112f12815 (patch) | |
tree | 88f35d36e590d6ced554bc0ab2aef2020a14ffc9 /app-office/lyx/files | |
parent | esmska: switch to virtual java deps (diff) | |
download | rebutia-9b9b325d36fb5f1d98400baafe4cd95112f12815.tar.gz rebutia-9b9b325d36fb5f1d98400baafe4cd95112f12815.tar.bz2 rebutia-9b9b325d36fb5f1d98400baafe4cd95112f12815.zip |
lyx 2 needs new python patch
Diffstat (limited to 'app-office/lyx/files')
-rw-r--r-- | app-office/lyx/files/2.0.3-python.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-office/lyx/files/2.0.3-python.patch b/app-office/lyx/files/2.0.3-python.patch new file mode 100644 index 0000000..e12f66a --- /dev/null +++ b/app-office/lyx/files/2.0.3-python.patch @@ -0,0 +1,26 @@ +diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp +index 97c4f68..8f05e62 100644 +--- a/src/graphics/GraphicsConverter.cpp ++++ b/src/graphics/GraphicsConverter.cpp +@@ -262,7 +262,7 @@ static void build_script(FileName const & from_file, + LYXERR(Debug::GRAPHICS, "build_script ... "); + typedef Graph::EdgePath EdgePath; + +- script << "#!/usr/bin/env python\n" ++ script << "#!/usr/bin/env python2\n" + "# -*- coding: utf-8 -*-\n" + "import os, shutil, sys\n\n" + "def unlinkNoThrow(file):\n" +diff --git a/src/support/os.cpp b/src/support/os.cpp +index f36331c..02f5a93 100644 +--- a/src/support/os.cpp ++++ b/src/support/os.cpp +@@ -57,7 +57,7 @@ static string const python2(string const & binary, bool verbose = false) + string const python() + { + // Check whether the first python in PATH is the right one. +- static string command = python2("python -tt"); ++ static string command = python2("python2 -tt"); + + if (command.empty()) { + // It was not, so check whether we can find it elsewhere in |