Skip to content

Commit 5597688

Browse files
committed
Half-fix Nativecallable
Still won't chooch properly. See issue #281
1 parent 1fc6ce8 commit 5597688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/Nativecallable.p6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ use Misc;
44

55
unit class Nativecallable does Whateverable;
66

7-
my $GPTrixie-BIN = gptrixie;
8-
97
method help($msg) {
108
Like this {$msg.server.current-nick}: <some C definition>;
119
}
1210

1311
sub run-gptrixie($header-file) {
14-
my %output = get-output $GPTrixie-BIN, --all, --silent, $header-file;
12+
my %ENV = %*ENV.clone;
13+
%ENV<PATH> = join :, /home/bisectable/.rakudobrew/bin, %ENV<PATH>; # TODO
14+
my %output = get-output :%ENV, gptrixie, --all, --silent, $header-file;
1515
if %output<output>.lines > 20 {
1616
return but FileStore(%(GPTrixiefied.pm6 => "#Generated by App::GPTrixie\n" ~ %output<output>))
1717
}

0 commit comments

Comments
 (0)