git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0523a54
)
Add path so that we can directly import PLCAPI
author
Andy Bavier
<acb@cs.princeton.edu>
Mon, 8 Feb 2010 18:06:01 +0000
(18:06 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Mon, 8 Feb 2010 18:06:01 +0000
(18:06 +0000)
sfa/plc/api.py
patch
|
blob
|
history
diff --git
a/sfa/plc/api.py
b/sfa/plc/api.py
index
57b90b6
..
a809ca8
100644
(file)
--- 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())