PY-15476 Code duplication eliminated and a minor refactoring

This commit is contained in:
Alexander Koshevoy
2015-09-17 16:15:16 +03:00
parent 31415ab86c
commit 691f5758e7
@@ -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;