Skip to content

Commit 04ff81c

Browse files
committed
Modify the way to load the guider package by using pip
1 parent 41a64e7 commit 04ff81c

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

common/guider.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import sys
2-
import os
3-
4-
curDir = os.path.dirname(os.path.abspath(__file__))
5-
sys.path.insert(0, '%s/../../../guider' % curDir)
6-
from guider import NetworkMgr
1+
from guider.guider import *
72

83

94
class SingleTonInstance(object):

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
certifi==2020.4.5.1
22
chardet==3.0.4
3+
guider==3.9.7b0
34
idna==2.9
45
influxdb==5.3.0
56
msgpack==0.6.1

visualize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from common.guider import GuiderInstance, RequestManager
66
from influxdb import InfluxDBClient
7-
from datetime import datetime
87

98

109
def get_data_by_command(target_addr, request_id, cmd):

0 commit comments

Comments
 (0)