From 3aa62e6995003f2631fb106e313d1d7132e373ab Mon Sep 17 00:00:00 2001 From: Bruce Dawson Date: Mon, 12 Jul 2021 09:05:43 -0700 Subject: [PATCH] Remove python27 hack A "temporary" hack was added six years to support forcing UIforETW to use Python 2.7. That hack was probably never needed and is certainly undesirable now. This affects issue #13. --- UIforETW/Utility.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/UIforETW/Utility.cpp b/UIforETW/Utility.cpp index 6c32ea53..b0a6c6a7 100644 --- a/UIforETW/Utility.cpp +++ b/UIforETW/Utility.cpp @@ -846,15 +846,6 @@ std::wstring FindInPath(const std::wstring& exeName) std::wstring FindPython() { - const std::wstring pytwoseven = GetEnvironmentVariableString(L"python27"); - - // Some people, like me, (Alexander Riccio) have an environment variable - // that specifically points to Python 2.7. - // As a workaround for issue #13, we'll use that version of Python. - // See the issue: https://github.com/google/UIforETW/issues/13 - if (!pytwoseven.empty()) - return pytwoseven; - // First look for python.exe. If that isn't found then look for // python.bat, part of Chromium's depot_tools for (const auto& exeName : { L"python.exe", L"python.bat" })