Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-06-01 04:44:13 -0400
committeraleherbau2011-06-01 04:44:13 -0400
commita7c3824a9f0d5cd88e31b3658bccb16e424a4e9b (patch)
tree778194483e7eb92e24b1ba1349a4fe538cd35569
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
-rw-r--r--python/src/tcf/shell.py9
-rw-r--r--python/todo.twiki1
2 files changed, 8 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
diff --git a/python/todo.twiki b/python/todo.twiki
index 824f4c280..57745b9a7 100644
--- a/python/todo.twiki
+++ b/python/todo.twiki
@@ -31,6 +31,7 @@
* [incomplete] ZeroCopy
* [95%] Locator service (discovery)
* iterate over network interfaces
+ * Diagnostics service
* Utilities:
* [done] ACPM data cache
* [done] TCFTask

Back to the top