diff --git a/xbin/Nativecallable.p6 b/xbin/Nativecallable.p6 index 7709e42..3e62d5f 100755 --- a/xbin/Nativecallable.p6 +++ b/xbin/Nativecallable.p6 @@ -13,7 +13,7 @@ method help($msg) { sub run-gptrixie($header-file) { my %ENV = %*ENV.clone; - %ENV = join ‘:’, ‘/home/bisectable/.rakudobrew/bin’, %ENV; # TODO + %ENV = join ‘:’, $*EXECUTABLE.parent, %ENV; my %output = get-output :%ENV, ‘gptrixie’, '--silent', ‘--all’, ‘--castxml=c99’, $header-file; if %output.lines > 20 { return ‘’ but FileStore(%(‘GPTrixiefied.pm6’ => "#Generated by App::GPTrixie\n" ~ %output)) diff --git a/xbin/Reportable.p6 b/xbin/Reportable.p6 index b4586c8..74c6416 100755 --- a/xbin/Reportable.p6 +++ b/xbin/Reportable.p6 @@ -110,7 +110,7 @@ sub snapshot($msg?) { .reply: ‘OK! Working on it. This will take forever, so don't hold your breath.’ with $msg; my $env = %*ENV.clone; - $env = ‘/home/bisectable/.rakudobrew/bin/’ ~ ‘:’ ~ $env; # TODO any better solution? + $env = join ‘:’, $*EXECUTABLE.parent, %ENV; mkdir “$temp-folder/GH”; run :$env, ‘maintenance/pull-gh’, “$temp-folder/GH”; # TODO authenticate on github to get rid of unlikely rate limiting mkdir “$temp-folder/RT”;