erweitere @INC um 'lib' falls nicht gesetzt.

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2717 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess
2013-02-13 10:07:32 +00:00
parent fac03b8780
commit 0014ef03f4

View File

@@ -3,6 +3,16 @@ package main;
use strict;
use warnings;
#add FHEM/lib to @INC if it's not allready included. Should rather be in fhem.pl than here though...
BEGIN {
if (!grep(/FHEM\/lib$/,@INC)) {
foreach my $inc (grep(/FHEM$/,@INC)) {
push @INC,$inc."/lib";
};
};
};
use Device::Firmata::Constants qw/ :all /;
use Device::Firmata::IO;
use Device::Firmata::Protocol;