From 043b9f2981099a0592110330756d9f7d08ccb7d6 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 11 Jan 2011 17:34:35 +0000 Subject: [PATCH] Added Python 2.7 support (Windows) --- src/preferences/preferences.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/preferences/preferences.h b/src/preferences/preferences.h index 2b0e60301..a9dcd0160 100644 --- a/src/preferences/preferences.h +++ b/src/preferences/preferences.h @@ -908,12 +908,16 @@ public: return path; } } + if(QFile::exists("C:/Python27/python.exe")) { + reg_python.setValue("2.7/InstallPath/Default", "C:\\Python27"); + return "C:\\Python27"; + } if(QFile::exists("C:/Python26/python.exe")) { reg_python.setValue("2.6/InstallPath/Default", "C:\\Python26"); return "C:\\Python26"; } if(QFile::exists("C:/Python25/python.exe")) { - reg_python.setValue("2.5/InstallPath/Default", "C:\\Python26"); + reg_python.setValue("2.5/InstallPath/Default", "C:\\Python25"); return "C:\\Python25"; } return QString::null;