def getInstalledPy(self):
    path = 'c:/'
    self.pyPath.addItem('Select')
    for each in os.listdir(path):
        if os.path.isdir((path + each)):
            if re.search('Python\\d', each, re.I):
                if os.path.exists(((path + each) + '/python.exe')):
                    self.pyPath.addItem(((path + each) + '/python.exe'))
def getInstalledPy(self):
    path = 'c:/'
    self.pyPath.addItem('Select')
    for each in os.listdir(path):
        if os.path.isdir((path + each)):
            if re.search('Python\\d', each, re.I):
                if os.path.exists(((path + each) + '/python.exe')):
                    self.pyPath.addItem(((path + each) + '/python.exe'))