From 5d773511ba925f96fcf390ad01f7d964ee3523a7 Mon Sep 17 00:00:00 2001 From: "liana.bakradze" Date: Fri, 5 Aug 2016 15:28:02 +0300 Subject: [PATCH] EDU-704 Unable to preview course from course creator with russian name on Windows --- .../edu/coursecreator/CreateFromArchiveProjectStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/educational-python/course-creator-python/src/com/jetbrains/edu/coursecreator/CreateFromArchiveProjectStep.java b/python/educational-python/course-creator-python/src/com/jetbrains/edu/coursecreator/CreateFromArchiveProjectStep.java index 033b83e8afda..ba98c77d7713 100644 --- a/python/educational-python/course-creator-python/src/com/jetbrains/edu/coursecreator/CreateFromArchiveProjectStep.java +++ b/python/educational-python/course-creator-python/src/com/jetbrains/edu/coursecreator/CreateFromArchiveProjectStep.java @@ -49,7 +49,7 @@ class CreateFromArchiveProjectStep extends PyCharmNewProjectStep { String zipName = FileUtil.sanitizeFileName(course.getName()); String locationDir = folder.getPath(); CCCreateCourseArchive.createCourseArchive(myProject, myModule, zipName, locationDir, false); - String path = FileUtil.join(folder.getPath(), zipName + ".zip"); + String path = FileUtil.join(FileUtil.toSystemDependentName(folder.getPath()), zipName + ".zip"); StudyProjectGenerator generator = myGenerator.getGenerator(); CourseInfo info = generator.addLocalCourse(path); assert info != null;