Skip to content
Snippets Groups Projects
Commit f5b5c8da authored by Taya Snijder's avatar Taya Snijder
Browse files

attempting to change bug, changed logging

parent e9ac557e
No related branches found
No related tags found
1 merge request!288Resolve L2SS-446 "Extend snmp client to support mib files"
......@@ -3,7 +3,7 @@ import sys
from pysnmp.smi import builder, compiler
import os
from pathlib import Path
from pysmi import debug
import logging
......@@ -27,7 +27,7 @@ def mib_compile(mib_list : list, src, dst):
raise Exception(f"Something went wrong, try checking whether all the mib fills imported by the provided mib files are present in the source locations ({src}) \r\n (To do this enable debug options and scroll up) ") from e
def main():
abs_path = os.path.dirname(__file__).replace("\\", "/")
abs_path = str(Path().absolute()).replace("\\", "/")
out_path = f"{abs_path}/output_pymibs"
in_path = f"{abs_path}/mibs"
......@@ -56,7 +56,7 @@ def main():
debug_option = args.debug
if debug_option:
debug.setLogger(debug.Debug('all'))
debug.setLogger(debug.Debug('compiler'))
mib_compile(mib_list=mibs, src=source, dst=destination)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment