Skip to content

Commit

Permalink
Make module loader respect --module-path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 14, 2013
1 parent 11c79ea commit fdaa9ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vm/jvm/ModuleLoader.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ knowhow ModuleLoader {

# Put any explicitly specified path on the start of the list.
my $explicit;
if !nqp::isnull($explicit) {
try { $explicit := %*COMPILING<%?OPTIONS>{$explicit_path}; }
if !nqp::isnull($explicit_path) {
try { my $hack; $explicit := %*COMPILING<%?OPTIONS>{$explicit_path}; }
}
if nqp::defined($explicit) {
if !nqp::isnull($explicit) && nqp::defined($explicit) {
nqp::push(@search_paths, $explicit);
}
else {
Expand Down

0 comments on commit fdaa9ea

Please sign in to comment.