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

undid pathlib change

parent f5b5c8da
Branches
Tags
1 merge request!288Resolve L2SS-446 "Extend snmp client to support mib files"
......@@ -3,7 +3,7 @@ from tangostationcontrol.clients.comms_client import CommClient
from pysnmp import hlapi
from pysnmp.smi import builder
import os
from pathlib import Path
import numpy
import logging
......@@ -240,7 +240,7 @@ class mib_loader:
self.mibBuilder = builder.MibBuilder()
def set_pymib_dir(self, mib_dir : str):
abs_path = os.path.dirname(__file__)
abs_path = str(Path().absolute()).replace("\\", "/")
if mib_dir[0] != "/":
mib_dir = "/" + mib_dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment