Add path so that we can directly import PLCAPI
authorAndy Bavier <acb@cs.princeton.edu>
Mon, 8 Feb 2010 18:06:01 +0000 (18:06 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Mon, 8 Feb 2010 18:06:01 +0000 (18:06 +0000)
sfa/plc/api.py

index 57b90b6..a809ca8 100644 (file)
@@ -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())