Re: Is there a way to get the tracker home dir programmatically within a detector?

Dan Tenenbaum <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>

----- Original Message -----
> From: "Ralf Schlatterbeck" <[email protected]>
> To: [email protected]
> Sent: Friday, May 1, 2015 2:01:51 PM
> Subject: Re: [Roundup-users] Is there a way to get the tracker home dir programmatically within a detector?
> 
> On Fri, May 01, 2015 at 10:27:17AM -0700, Dan Tenenbaum wrote:
> > Hi,
> > 
> > The subject line pretty much says it all. From within a detector I
> > would like to determine what the tracker home is. Also wondering if
> > I
> > can access other values from the config file within a detector. I
> > looked in the docs for this but didn't find it (might have missed
> > it).
> 
> db.dir has the directory of your tracker database directory.
> Note that this is *typically* below your tracker home but you could
> have
> reconfigured that in config.ini.
> 
> Otherwise: We insert the 'lib' directory (if existing) of your
> tracker
> home into sys.path (it's in sys.path [1]) -- but only if a lib
> directory
> exists in your tracker.
> 
> config has already been answered...
> db.config has the config class.
> 
> and finally: db.config.HOME is the home-directory of the tracker.
> 
> Hope that helps

That does help! db.dir has my tracker-home/db directory. Thanks!
Dan


> Ralf
> 
> --
> Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
> Open Source Consulting                  www:   http://www.runtux.com
> Reichergasse 131, A-3411 Weidling       email: [email protected]
> allmenda.com member                     email: [email protected]
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across
> Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable
> Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Roundup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/roundup-users
> 

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.