From 691f5758e7e1dc6ec58b202de12e40fa7dda9bbc Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy Date: Thu, 17 Sep 2015 16:15:16 +0300 Subject: [PATCH] PY-15476 Code duplication eliminated and a minor refactoring --- python/src/com/jetbrains/python/sdk/PythonSdkType.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/src/com/jetbrains/python/sdk/PythonSdkType.java b/python/src/com/jetbrains/python/sdk/PythonSdkType.java index 105689d3bf4c..fe72fd791e32 100644 --- a/python/src/com/jetbrains/python/sdk/PythonSdkType.java +++ b/python/src/com/jetbrains/python/sdk/PythonSdkType.java @@ -749,6 +749,9 @@ public class PythonSdkType extends SdkType { return path; } + /** + * Returns skeletons location on the local machine. Independent of SDK credentials type (e.g. ssh, Vagrant, Docker or else). + */ public static String getSkeletonsPath(String basePath, String sdkHome) { String sep = File.separator; return getSkeletonsRootPath(basePath) + sep + FileUtil.toSystemIndependentName(sdkHome).hashCode() + sep;