修改bug

master
whb 8 months ago
parent aa815fe510
commit dd3fc36a19

@ -304,6 +304,7 @@ public class JupyterhubController {
try {
String[] command = {"jupyter", "nbconvert", "--to", "html", newIpynb, "--output", htmlIpynb};
// 创建一个新的进程来执行Python代码
Process process = Runtime.getRuntime().exec(command);

@ -245,7 +245,7 @@ public class LocalFileUtil implements IFileUtil {
if (caseName == null)
{
File destFile = new File(relativePath + File.separator + result);
File destFile = new File(relativePath + result);
file.transferTo(destFile);
return;
@ -255,7 +255,7 @@ public class LocalFileUtil implements IFileUtil {
int i = file.getOriginalFilename().lastIndexOf(".");
String substring = file.getOriginalFilename().substring(i);
File destFile = new File(relativePath + File.separator + result+substring);
File destFile = new File(relativePath+substring);
file.transferTo(destFile);
} catch (FileNotFoundException e) {
@ -264,4 +264,6 @@ public class LocalFileUtil implements IFileUtil {
throw new IllegalArgumentException("上传文件失败,IO错误", e);
}
}
}

Loading…
Cancel
Save