Re: Loadable Modules and full/relative paths
By: Nightfox to Digital Man on Tue Mar 08 2022 03:30 pm
> Hi DM,
>
> For the Loadable Modules configuration in SCFG, it seems it doesn't accept
> full/relative paths, is that correct?
It's a mix. Have you looked at the online (F1) help? It clarifies which loadable modules use full command-lines are which are just module names.
> I've started working on updating my message reader so that it can be used
> directly as a loadable module (without needing separate loadable module
> scripts), but one possible issue is that DDMsgReader is under
> sbbs/xtrn/DDMsgReader (and it's actually one level deeper on my system).
> I've tried specifying a relative path + DDmsgReader in SCFG, but then
> Synchronet gave an error saying it couldn't execute it. I also saw that the
> wiki says only the name of the file is accepted (no .js or .bin file
> extension) - I assume that also means no path prefix as well?
> https://wiki.synchro.net/util:scfg:system#loadable_modules
Correct.
> One workaround I thought of was to create another, DDMsgReader.js which one
> could place in sbbs/mods, which would just build a string of arguments from
> argv and then call bbs.exec() to run the actual DDMsgReader. Or perhaps
> DDMsgReader.js could be moved into sbbs/exec, and its config files could be
> moved to sbbs/ctrl etc., but it seems cleaner to have all of its files
> together under /xtrn/DDMsgReader.
Yup, either of those seem like viable workarounds.
--
digital man (rob)
Sling Blade quote #4:
Doyle: wimpy-ass kids or mental retards.. she got one of each livin' with her.
Norco, CA WX: 57.5øF, 29.0% humidity, 6 mph SSE wind, 0.00 inches rain/24hrs
--- SBBSecho 3.15-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|