Page 1 of 1

libdb

Posted: Fri Dec 06, 2013 5:18 am
by amitic
Is there any way to get the current 'libdb' setting in vortex?
- <vxinfo globaldb> returns the db, set with <DB>
- <vxinfo license defaultdb> returns the default 'libdb'; i.e. it will not return the correct value if it is modified with the '-libdb' command line option

I need the get the currently executing module's revision and source for some reflection/introspection stuff. <vxinfo sourcepath> doesn't help either as it returns the name of the script that was run and not the module that is currently executing.

Any ideas on getting the source of the currently executing module would be appreciated (either the last compiled/checked-in version from the libdb or the 'current' version from the module source file).

Thanks

libdb

Posted: Fri Dec 06, 2013 10:28 am
by Kai
Unfortunately there's no direct way to get the library db. Best you could do is use <vxinfo globaldb> as a default, then replace that with the `-libdb' argument from $cmdlnargs if found.

libdb

Posted: Wed Dec 11, 2013 5:58 pm
by amitic
Great, thanks!
$cmdlnargs does the job

Regards