mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Don't run auto-configuration on a project with .idea (PY-39541)
GitOrigin-RevId: 7f455a4abfb71647080da37eb039eeda83bb21f1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1106d8cf84
commit
74d29abf8d
@@ -24,6 +24,8 @@ import com.intellij.openapi.util.UserDataHolderBase
|
||||
import com.intellij.ui.AppUIUtil
|
||||
import com.jetbrains.python.sdk.*
|
||||
import com.jetbrains.python.sdk.pipenv.detectAndSetupPipEnv
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.Paths
|
||||
|
||||
/**
|
||||
* @author vlan
|
||||
@@ -92,7 +94,9 @@ class PythonSdkConfigurator {
|
||||
private fun configureSdk(project: Project, indicator: ProgressIndicator) {
|
||||
indicator.isIndeterminate = true
|
||||
|
||||
if (project.isDefault || project.pythonSdk != null) return
|
||||
if (project.isDefault ||
|
||||
project.pythonSdk != null ||
|
||||
project.basePath.let { it != null && Files.exists(Paths.get(it, Project.DIRECTORY_STORE_FOLDER)) }) return
|
||||
|
||||
val context = UserDataHolderBase()
|
||||
val module = ModuleManager.getInstance(project).modules.firstOrNull() ?: return
|
||||
|
||||
Reference in New Issue
Block a user