Skip to content

Commit

Permalink
Add Gtk lib paths to path when running under PAR on Windows
Browse files Browse the repository at this point in the history
Otherwise the DLLs are not loaded properly.
  • Loading branch information
shawnlaffan committed Feb 2, 2024
1 parent cd0b4af commit b56b8da
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Biodiverse/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ BEGIN {
if (!$EVAL_ERROR) {
say "Added Alien::GtkStack::Windows bin dir to path";
}
if ($ENV{PAR_0}) {
use Path::Tiny qw /path/;
my $base = path ($ENV{PAR_TEMP}, "inc/lib/auto");
#say "Looking for Gtk2 stuff under $base";
my @path_args;
foreach my $name (qw /Glib Pango Cairo Gtk2/) {
my $dir = $base->child($name);
next if !$dir->exists;
say "Adding $dir to path";
push @PATH, $dir;
}
}
}

# Ensure the bin dirs for the aliens are at the front
Expand Down

0 comments on commit b56b8da

Please sign in to comment.