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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user