1836 if variant == 1: |
1836 if variant == 1: |
1837 # no PySide support anymore |
1837 # no PySide support anymore |
1838 return "" |
1838 return "" |
1839 |
1839 |
1840 if isWindowsPlatform(): |
1840 if isWindowsPlatform(): |
1841 pysideInterpreters = checkPyside(variant) |
1841 hasPyside = checkPyside(variant) |
1842 interpreterIndex = sys.version_info[0] - 2 |
|
1843 hasPyside = pysideInterpreters[interpreterIndex] |
|
1844 if not hasPyside: |
1842 if not hasPyside: |
1845 return "" |
1843 return "" |
1846 |
1844 |
1847 if interpreterIndex == 1: |
1845 venvName = Preferences.getDebugger("Python3VirtualEnv") |
1848 venvName = Preferences.getDebugger("Python3VirtualEnv") |
|
1849 interpreter = e5App().getObject( |
1846 interpreter = e5App().getObject( |
1850 "VirtualEnvManager").getVirtualenvInterpreter(venvName) |
1847 "VirtualEnvManager").getVirtualenvInterpreter(venvName) |
1851 prefix = os.path.dirname(interpreter) |
1848 prefix = os.path.dirname(interpreter) |
1852 if toolname in ["pyside2-uic"]: |
1849 if toolname in ["pyside2-uic"]: |
1853 return os.path.join(prefix, "Scripts", toolname + '.exe') |
1850 return os.path.join(prefix, "Scripts", toolname + '.exe') |