+
+ @NotNull
+ @Override
+ public GeneralCommandLine newCommandLine(@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.isPy3K() ? PY3_HELPER_DEPENDENCIES_DIR : PY2_HELPER_DEPENDENCIES_DIR;
+ PythonEnvUtil.addToPythonPath(cmd.getEnvironment(), FileUtil.join(getPythonPathEntry(), perVersionDependenciesDir));
+ return cmd;
+ }