[Python-modules-commits] r766 - /packages/python-pysnmp4/trunk/debian/README.Debian

jluebbe-guest at users.alioth.debian.org jluebbe-guest at users.alioth.debian.org
Sat Jun 10 08:49:39 UTC 2006


Author: jluebbe-guest
Date: Sat Jun 10 08:49:38 2006
New Revision: 766

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=766
Log:
Document how to choose the api version.

Modified:
    packages/python-pysnmp4/trunk/debian/README.Debian

Modified: packages/python-pysnmp4/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pysnmp4/trunk/debian/README.Debian?rev=766&op=diff
==============================================================================
--- packages/python-pysnmp4/trunk/debian/README.Debian (original)
+++ packages/python-pysnmp4/trunk/debian/README.Debian Sat Jun 10 08:49:38 2006
@@ -1,7 +1,20 @@
-Please note:
-
+---- Documentation ----
 The documentation and examples for this package is in
 python-pysnmp4-doc.
 
 When you install that package, you can find the documentation and
 examples in /usr/share/doc/python-pysnmp4-doc.
+
+---- API Versions ----
+If more than one pysnmp version is installed, it is possible to choose
+a version by setting the PYSNMP_API_VERSION environment variable.
+
+You need to set the environment variable before importing pysnmp.
+If you need pysnmp2, use this code:
+
+ import os 
+ os.environ['PYSNMP_API_VERSION'] = 'v2'
+ import pysnmp
+
+If you need another version, replace v2 with the correct one.
+




More information about the Python-modules-commits mailing list