2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: add modpath root directory to @INC for FHEM:: Modules (Forum #97589)

git-svn-id: https://svn.fhem.de/fhem/trunk@18989 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-03-22 08:08:23 +00:00
parent cebe8b648b
commit e263f7f84d

View File

@ -2753,7 +2753,8 @@ GlobalAttr($$$$)
my $modpath = "$val/FHEM"; my $modpath = "$val/FHEM";
opendir(DH, $modpath) || return "Can't read $modpath: $!"; opendir(DH, $modpath) || return "Can't read $modpath: $!";
push @INC, $modpath if(!grep(/\Q$modpath\E/, @INC)); push @INC, $modpath if(!grep(/^\Q$modpath\E$/, @INC));
push @INC, $val if(!grep(/^\Q$val\E$/, @INC));
$cvsid =~ m/(fhem.pl) (\d+) (\d+-\d+-\d+)/; $cvsid =~ m/(fhem.pl) (\d+) (\d+-\d+-\d+)/;
$attr{global}{version} = "$1:$2/$3"; $attr{global}{version} = "$1:$2/$3";
my $counter = 0; my $counter = 0;