EDU-704 Unable to preview course from course creator with russian name on Windows

This commit is contained in:
liana.bakradze
2016-08-05 15:28:02 +03:00
parent 9e1e9fab75
commit 5d773511ba
@@ -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;