mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
cebe8b648b
commit
e263f7f84d
@ -2753,7 +2753,8 @@ GlobalAttr($$$$)
|
||||
my $modpath = "$val/FHEM";
|
||||
|
||||
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+)/;
|
||||
$attr{global}{version} = "$1:$2/$3";
|
||||
my $counter = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user