From: liana.bakradze Date: Fri, 5 Aug 2016 12:28:02 +0000 (+0300) Subject: EDU-704 Unable to preview course from course creator with russian name on Windows X-Git-Tag: dbe/163.2303^0 X-Git-Url: http://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=5d773511ba925f96fcf390ad01f7d964ee3523a7 EDU-704 Unable to preview course from course creator with russian name on Windows --- 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;