Skip to content

Commit

Permalink
Merge pull request #90 from retupmoca/master
Browse files Browse the repository at this point in the history
Add our current destdir to @*INC
  • Loading branch information
Tadeusz Sośnierz committed Aug 25, 2014
2 parents 5b7a352 + 74fd87f commit eb66dcf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Panda/App.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ sub make-default-ecosystem is export {
}
}

# Add the path we're installing to @*INC
#
# If we're installing to a custom destdir or we're installing to a standard
# dir that did not exist, it isn't in @*INC (which will make Build.pm
# files that depend on the modules we just installed break).
#
# If this is already in @*INC, it doesn't harm anything to re-add it.
@*INC.push($destdir~'/lib');

return Panda::Ecosystem.new(
statefile => "$pandadir/state",
projectsfile => "$pandadir/projects.json",
Expand Down

0 comments on commit eb66dcf

Please sign in to comment.