From: Tobias Oetiker Date: Thu, 12 May 2005 22:03:01 +0000 (+0000) Subject: add notes on python error, and install location X-Git-Tag: 1.2.7~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a5b3952eaf84ac1ac87669c75868eb9518f6763;p=thirdparty%2Frrdtool-1.x.git add notes on python error, and install location git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@550 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/doc/rrdpython.pod b/doc/rrdpython.pod index a158577f..2d634269 100644 --- a/doc/rrdpython.pod +++ b/doc/rrdpython.pod @@ -18,6 +18,7 @@ to the other B documentation for functions and valid arguments. =head1 EXAMPLE + sys.path.append('/path/to/rrdtool/lib/python2.3/site-packages/') import rrdtool, tempfile DAY = 86400 @@ -40,6 +41,11 @@ to the other B documentation for functions and valid arguments. print info['last_update'] print info['ds']['downloads']['minimal_heartbeat'] +If you use the B make target you can drop to first sys.path.append +line since the rrdtool module will be available everywhere. + +If rrdtool runs into trouble, it will throw an exception which you might want to catch. + =head1 SEE ALSO rrdcreate, rrdupdate, rrdgraph, rrddump, rrdfetch, rrdtune, rrdlast,