From 08170828e705f7c962d10890563e97e7919b0782 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Mon, 8 Feb 2010 18:06:01 +0000 Subject: [PATCH] Add path so that we can directly import PLCAPI --- sfa/plc/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sfa/plc/api.py b/sfa/plc/api.py index 57b90b6a..a809ca84 100644 --- a/sfa/plc/api.py +++ b/sfa/plc/api.py @@ -67,6 +67,7 @@ class SfaAPI(BaseAPI): 'AuthMethod': 'password', 'AuthString': self.config.SFA_PLC_PASSWORD} try: + sys.path.append(os.path.dirname(os.path.realpath("/usr/bin/plcsh"))) self.plshell_type = 'direct' import PLC.Shell shell = PLC.Shell.Shell(globals = globals()) -- 2.47.0