From 73d806b36f5d514c64a0f27cee03943c72081222 Mon Sep 17 00:00:00 2001 From: Dan Bradham Date: Mon, 7 Feb 2022 15:12:06 -0500 Subject: [PATCH] Fix executable lookup for Python3. --- startup.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/startup.py b/startup.py index bee8b79..b398b4a 100644 --- a/startup.py +++ b/startup.py @@ -212,9 +212,15 @@ def scan_software(self): def _find_software(self): + # Support Python 3.3+. + # Platform value for linux changed from "linux2" to "linux". + platform = sys.platform + if platform == 'linux': + platform = 'linux2' + # all the executable templates for the current OS - executable_templates = self.EXECUTABLE_TEMPLATES.get(sys.platform, []) - executable_regexp = self.COMPONENT_REGEX_LOOKUP.get(sys.platform, []) + executable_templates = self.EXECUTABLE_TEMPLATES.get(platform, []) + executable_regexp = self.COMPONENT_REGEX_LOOKUP.get(platform, []) # all the discovered executables sw_versions = []