From: Andy Bavier Date: Mon, 8 Feb 2010 18:06:01 +0000 (+0000) Subject: Add path so that we can directly import PLCAPI X-Git-Tag: sfa-0.9-11~142 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=08170828e705f7c962d10890563e97e7919b0782;p=sfa.git Add path so that we can directly import PLCAPI --- 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())