98_help.pm: use modpath

git-svn-id: https://svn.fhem.de/fhem/trunk@8044 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2015-02-20 07:08:36 +00:00
parent 6492d00e08
commit 3a4c57cdc1

View File

@@ -23,7 +23,8 @@ sub CommandHelp {
if($mod) {
$mod = lc($mod);
my %mods;
my @modDir = ("FHEM");
my $modPath = AttrVal('global','modpath','.');
my @modDir = ("$modPath/FHEM");
foreach my $modDir (@modDir) {
opendir(DH, $modDir) || die "Cant open $modDir: $!\n";
while(my $l = readdir DH) {