Merge pull request #140 from tmancill/startup-vars

warn user when short-circuiting initialisation
This commit is contained in:
Duncan Ferguson 2021-06-29 08:47:55 +01:00 committed by GitHub
commit 70b4731659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,10 @@ sub import {
# If we are building or in test here, just exit
# as travis build servers will not have Tk installed
return if $ENV{AUTHOR_TESTING} || $ENV{RELEASE_TESTING};
if ($ENV{AUTHOR_TESTING} || $ENV{RELEASE_TESTING}) {
print STDERR "skipping initialisation; AUTHOR_TESTING or RELEASE_TESTING are set\n";
return;
}
# Find what windows module we should be using and just overlay it into
# this object