String (Project project, PythonRunParams config) { String sdkHome = config.getSdkHome(); if (config.isUseModuleSdk() || StringUtil.isEmpty(sdkHome)) { Module module = getModule(project, config); Sdk sdk = PythonSdkUtil.findPythonSdk(module); if (sdk != null) { sdkHome = sdk.getHomePath(); } } return sdkHome; }