Skip to content

Commit 36551fc

Browse files
committed
use Path instead VFile
1 parent 83df992 commit 36551fc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎python-impl/src/main/java/com/jetbrains/python/impl/run/PythonCommandLineState.java‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
import java.io.IOException;
7474
import java.net.ServerSocket;
7575
import java.nio.charset.Charset;
76+
import java.nio.file.Path;
7677
import java.util.*;
7778

7879
/**
@@ -434,13 +435,13 @@ private static void addRootsFromModule(Module module, Collection<String> pythonP
434435

435436
// for Jython
436437
ModuleCompilerPathsManager extension = ModuleCompilerPathsManager.getInstance(module);
437-
VirtualFile path = extension.getCompilerOutput(ProductionContentFolderTypeProvider.getInstance());
438+
Path path = extension.getCompilerOutputPath(ProductionContentFolderTypeProvider.getInstance());
438439
if (path != null) {
439-
pythonPathList.add(path.getPath());
440+
pythonPathList.add(path.toString());
440441
}
441-
VirtualFile pathForTests = extension.getCompilerOutput(TestContentFolderTypeProvider.getInstance());
442+
Path pathForTests = extension.getCompilerOutputPath(TestContentFolderTypeProvider.getInstance());
442443
if (pathForTests != null) {
443-
pythonPathList.add(pathForTests.getPath());
444+
pythonPathList.add(pathForTests.toString());
444445
}
445446

446447
List<ModuleExtension> extensions = ModuleRootManager.getInstance(module).getExtensions();

0 commit comments

Comments
 (0)