libdb

Post Reply
amitic
Posts: 14
Joined: Fri Jul 02, 2010 10:57 pm

libdb

Post 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
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

libdb

Post 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.
amitic
Posts: 14
Joined: Fri Jul 02, 2010 10:57 pm

libdb

Post by amitic »

Great, thanks!
$cmdlnargs does the job

Regards
Post Reply