修复直达接口的一个bug

This commit is contained in:
chenxy123 2016-12-11 21:36:12 +08:00
parent 49d704f801
commit cf752b4128

View File

@ -77,11 +77,7 @@ class ShzdGateway(VtGateway):
"""连接"""
# 载入json文件
fileName = self.gatewayName + '_connect.json'
#fileName = os.getcwd() + '/shzdGateway/' + fileName
from vtFunction import filePath
path = filePath()
#path = os.path.abspath(os.path.dirname(__file__))
print 'path:', path
path = os.path.abspath(os.path.dirname(__file__))
fileName = os.path.join(path, fileName)
try: