Skip to content

Commit fdaa9ea

Browse files
committed
Make module loader respect --module-path.
1 parent 11c79ea commit fdaa9ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vm/jvm/ModuleLoader.nqp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ knowhow ModuleLoader {
77

88
# Put any explicitly specified path on the start of the list.
99
my $explicit;
10-
if !nqp::isnull($explicit) {
11-
try { $explicit := %*COMPILING<%?OPTIONS>{$explicit_path}; }
10+
if !nqp::isnull($explicit_path) {
11+
try { my $hack; $explicit := %*COMPILING<%?OPTIONS>{$explicit_path}; }
1212
}
13-
if nqp::defined($explicit) {
13+
if !nqp::isnull($explicit) && nqp::defined($explicit) {
1414
nqp::push(@search_paths, $explicit);
1515
}
1616
else {

0 commit comments

Comments
 (0)