Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-06-01 08:44:13 +0000
committeraleherbau2011-06-01 08:44:13 +0000
commita7c3824a9f0d5cd88e31b3658bccb16e424a4e9b (patch)
tree778194483e7eb92e24b1ba1349a4fe538cd35569 /python/src/tcf
parent6c66f7e4848a076f553c81bdb64dd85610af2d79 (diff)
downloadorg.eclipse.tcf-a7c3824a9f0d5cd88e31b3658bccb16e424a4e9b.tar.gz
org.eclipse.tcf-a7c3824a9f0d5cd88e31b3658bccb16e424a4e9b.tar.xz
org.eclipse.tcf-a7c3824a9f0d5cd88e31b3658bccb16e424a4e9b.zip
TCF Python: Fixed import error when running tcf/shell.py
Diffstat (limited to 'python/src/tcf')
-rw-r--r--python/src/tcf/shell.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/src/tcf/shell.py b/python/src/tcf/shell.py
index 8042abcd2..68095d3fd 100644
--- a/python/src/tcf/shell.py
+++ b/python/src/tcf/shell.py
@@ -29,8 +29,13 @@ Commands:
- Stop recording for service or for all services
"""
-import code, sys
-import tcf
+import code, sys, os
+try:
+ import tcf
+except ImportError:
+ # add current dir to path
+ sys.path.insert(0, os.getcwd())
+ import tcf
from tcf.util import sync, event
from tcf import protocol, channel

Back to the top