allow netdisco-deploy to work from git and without localenv

This commit is contained in:
Oliver Gorwits
2013-03-04 20:47:11 +00:00
parent 376b1cf9dd
commit c4b60e47a2
3 changed files with 33 additions and 10 deletions

View File

@@ -5,11 +5,10 @@ use warnings FATAL => 'all';
use FindBin;
FindBin::again();
our $home;
# try really hard to find a localenv if one isn't already in place.
BEGIN {
# try really hard to find a localenv if one isn't already in place.
$home = ($ENV{NETDISCO_HOME} || $ENV{HOME});
eval "use Daemon::Control";