File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3636import java .io .OutputStream ;
3737import java .lang .management .ManagementFactory ;
3838import java .nio .file .Files ;
39+ import java .nio .file .InvalidPathException ;
3940import java .nio .file .NoSuchFileException ;
4041import java .nio .file .Path ;
4142import java .nio .file .Paths ;
@@ -753,7 +754,12 @@ private static String toAbsolutePath(String executable) {
753754 }
754755
755756 private void findAndApplyVenvCfg (Builder contextBuilder , String executable ) {
756- Path binDir = Paths .get (executable ).getParent ();
757+ Path binDir ;
758+ try {
759+ binDir = Paths .get (executable ).getParent ();
760+ } catch (InvalidPathException e ) {
761+ return ;
762+ }
757763 if (binDir == null ) {
758764 return ;
759765 }
You can’t perform that action at this time.
0 commit comments