From 87ccb2527d506ae131ae6cb33bb771270e7a94bf Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Fri, 14 Oct 2016 20:21:47 +0300 Subject: [PATCH] Add restored sdk root virtual file instead of original file We check for the restored root file being contained in the excluded paths and then we used to put the original file instead of the restored one. For example, the restored file a Jar FS for *.egg archive was ignored and the original file was used instead. This resulted in the wrong assumption that our paths had been modified. --- python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java b/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java index 7d4502625766..383939f8b57a 100644 --- a/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java +++ b/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java @@ -340,7 +340,7 @@ public class PythonSdkUpdater implements StartupActivity { if (virtualFile != null) { final VirtualFile rootFile = PythonSdkType.getSdkRootVirtualFile(virtualFile); if (!excludedPaths.contains(rootFile)) { - results.add(virtualFile); + results.add(rootFile); continue; } }