EDU-704 Unable to preview course from course creator with russian name on Windows dbe/163.2303
authorliana.bakradze <liana.bakradze@jetbrains.com>
Fri, 5 Aug 2016 12:28:02 +0000 (15:28 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Fri, 5 Aug 2016 12:28:02 +0000 (15:28 +0300)
python/educational-python/course-creator-python/src/com/jetbrains/edu/coursecreator/CreateFromArchiveProjectStep.java

index 033b83e8afda8d4939028763dad8d6c088e86a07..ba98c77d7713fdbdd00411574913415cac273c7c 100644 (file)
@@ -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;