Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bring MoarVM module loader in line with others.
  • Loading branch information
jnthn committed Oct 12, 2013
1 parent 60a7992 commit 60e2222
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/vm/moar/ModuleLoader.nqp
Expand Up @@ -12,8 +12,9 @@ knowhow ModuleLoader {
nqp::push(@search_paths, $explicit);
}

# Add CWD.
# Add CWD and blib.
nqp::push(@search_paths, '.');
nqp::push(@search_paths, 'blib');

@search_paths
}
Expand Down Expand Up @@ -134,10 +135,10 @@ knowhow ModuleLoader {
my $path := "$setting_name.setting.moarvm";
my @prefixes := self.search_path('setting-path');
for @prefixes -> $prefix {
# if nqp::stat("$prefix/$path", 0) {
if nqp::stat("$prefix/$path", 0) {
$path := "$prefix/$path";
# last;
# }
last;
}
}

# Unless we already did so, load the setting.
Expand Down

0 comments on commit 60e2222

Please sign in to comment.