GeneralCommandLine (@NotNull Sdk pythonSdk, @NotNull List<String> parameters) { final String sdkHomePath = pythonSdk.getHomePath(); assert sdkHomePath != null; final GeneralCommandLine cmd = newCommandLine(sdkHomePath, parameters); final LanguageLevel version = PythonSdkType.getLanguageLevelForSdk(pythonSdk); final String perVersionDependenciesDir = version.isPython2() ? PY2_HELPER_DEPENDENCIES_DIR : PY3_HELPER_DEPENDENCIES_DIR; PythonEnvUtil.addToPythonPath(cmd.getEnvironment(), FileUtil.join(getPythonPathEntry(), perVersionDependenciesDir)); return cmd; }