EDU-704 Unable to preview course from course creator with russian name on Windows
[idea/community.git] / 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;