File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2- import sys
32import time
43from typing import Callable
54
65import pymodbus
76from pymodbus .constants import Endian
87
9- from modules .common import modbus
8+ import sys
9+ sys .path .append ("/var/www/html/openWB/packages" )
10+
11+ try :
12+ from modules .common import modbus
13+ except Exception as e :
14+ print (e )
1015
1116
1217def try_read (function : Callable , ** kwargs ) -> str :
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2- import sys
32import time
4- from modules .common import modbus
3+ import sys
4+ sys .path .append ("/var/www/html/openWB/packages" )
5+ try :
6+ from modules .common import modbus
7+ except Exception as e :
8+ print (e )
9+
510
611host = sys .argv [1 ]
712port = int (sys .argv [2 ])
You can’t perform that action at this time.
0 commit comments