Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Traversing @*INC correctly
  • Loading branch information
andreoss committed May 22, 2015
1 parent 2475551 commit 89b2d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/p6doc
Expand Up @@ -27,7 +27,7 @@ sub tempfile() {

sub search-paths() {
(findbin() X~ <../doc/perl6/lib/ ../lib/> X~ '',<Type/ Language/ Routine/>),
@*INC>>.Str.map({ /\/$/ ?? $_ !! $_ ~ '/' });
@*INC.map({CompUnitRepo.new($_)})».IO».Str.map({ /\/$/ ?? $_ !! $_ ~ '/' });
}

sub module-names(Str $modulename) {
Expand Down
2 changes: 1 addition & 1 deletion bin/p6doc-index
Expand Up @@ -28,7 +28,7 @@ multi sub MAIN('build') {

# XXX p6doc probably uses another path to @*INC which is probably incomplete

for ( @*INC ) -> $lib_path is copy {
for @*INC.map({CompUnitRepo.new($_)})».IO -> $lib_path is copy {

$lib_path = $lib_path.Str;
my @files := find(:dir($lib_path),:type('file'));
Expand Down

0 comments on commit 89b2d19

Please sign in to comment.