Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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