X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdpython.pod;h=2d634269496dc082934aaa25c38a33566551fb5e;hp=a158577f7f983dd474e3bf3b569a03fc3ce4eeb9;hb=6e21e35d25bdf1110711669bef87dcfaf621bb22;hpb=199a103f8d08936f93c5864ea7bc0ba722fc6b5c diff --git a/doc/rrdpython.pod b/doc/rrdpython.pod index a158577..2d63426 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,