Skip to content

Commit

Permalink
Fix help not working for pkgs in pwd
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 8313a2ccb9099c28e4e42f21d63056b707974d8bdb9821dac7624c5566e9bacb
  • Loading branch information
pmacdona committed Oct 5, 2021
1 parent bf7aab4 commit 9fa798e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Help.jsi
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,13 @@ function Help(args, ...) {
require(anam);
moduleRun(anam, ['-help', true]);
} catch (e) {
rv = e;
try {
Interp.conf({pkgDirs:[File.pwd()]});
require(anam);
moduleRun(anam, ['-help', true]);
} catch (e) {
rv = e;
}
}
return rv;
}
Expand Down

0 comments on commit 9fa798e

Please sign in to comment.