pysnmp how to load custom MIB modules which are in asn.1 format
<p>I am having trouble in figuring out how to load custom MIBs which with .txt extensions using <code>pysnmp</code> module</p>

<p>This is what I am doing currently</p>

<pre><code>b = builder.MibBuilder()
compiler.addMibCompiler(b, sources=[mib_location])
</code></pre>

<p>mib_location is folder on which all my MIBs are located. something like <code>file:///&lt;my_folder&gt;</code></p>

<p>But still I am not able to load these MIBs.</p>

<p>I am thinking that may be I'll have to specify that my MIBs have an extension of .txt but not sure where.</p>