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 36
36
import java .io .OutputStream ;
37
37
import java .lang .management .ManagementFactory ;
38
38
import java .nio .file .Files ;
39
+ import java .nio .file .InvalidPathException ;
39
40
import java .nio .file .NoSuchFileException ;
40
41
import java .nio .file .Path ;
41
42
import java .nio .file .Paths ;
@@ -753,7 +754,12 @@ private static String toAbsolutePath(String executable) {
753
754
}
754
755
755
756
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
+ }
757
763
if (binDir == null ) {
758
764
return ;
759
765
}
You can’t perform that action at this time.
0 commit comments