summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 199a103)
raw | patch | inline | side by side (parent: 199a103)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 12 May 2005 22:03:01 +0000 (22:03 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 12 May 2005 22:03:01 +0000 (22:03 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@550 a5681a0c-68f1-0310-ab6d-d61299d08faa
doc/rrdpython.pod | patch | blob | history |
diff --git a/doc/rrdpython.pod b/doc/rrdpython.pod
index a158577f7f983dd474e3bf3b569a03fc3ce4eeb9..2d634269496dc082934aaa25c38a33566551fb5e 100644 (file)
--- a/doc/rrdpython.pod
+++ b/doc/rrdpython.pod
=head1 EXAMPLE
+ sys.path.append('/path/to/rrdtool/lib/python2.3/site-packages/')
import rrdtool, tempfile
DAY = 86400
print info['last_update']
print info['ds']['downloads']['minimal_heartbeat']
+If you use the B<site-python-install> 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,