Skip to content

Commit

Permalink
Set $?FILES in module loader, so we end up with the correct filename …
Browse files Browse the repository at this point in the history
…annotation in modules.
  • Loading branch information
jnthn committed May 30, 2010
1 parent 3d540b8 commit ff31b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Module/Loader.pm
Expand Up @@ -43,6 +43,7 @@ method need($name, %name_adverbs?) {
# XXX We can try to write the compiled PIR to disk so the next
# time around it's fast.
unless $loaded_pir {
my $?FILES := pir::substr($pm_file, 0, 2) eq './' ?? pir::substr($pm_file, 2) !! $pm_file;
my $fh := pir::open__PSS($pm_file, 'r');
my $source := $fh.readall();
$fh.close();
Expand Down

0 comments on commit ff31b59

Please sign in to comment.