File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
stepik-union/src/main/java/org/stepik/core/testFramework/runners Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ class PythonRunner : JetRunner() {
3535 project : Project ,
3636 appConfiguration : RunConfiguration ,
3737 mainVirtualFile : VirtualFile ? ) {
38- val module = (appConfiguration as PythonRunConfiguration ).module
39- val modulePath = module?.moduleFile?.parent?.path
38+ val workingDirectory = (appConfiguration as PythonRunConfiguration ).workingDirectory
4039 val scriptPath = mainVirtualFile?.path
4140 val scriptRelativePath: String
4241
43- if (modulePath != null && scriptPath != null ) {
44- scriptRelativePath = ProjectFilesUtils .getRelativePath(modulePath , scriptPath)
42+ if (workingDirectory != null && scriptPath != null ) {
43+ scriptRelativePath = ProjectFilesUtils .getRelativePath(workingDirectory , scriptPath)
4544 } else {
4645 scriptRelativePath = " "
4746 }
You can’t perform that action at this time.
0 commit comments