bin/read_trace

changeset 39
8becd52c2171
parent 14
07e2cbf140df
child 40
1bbea188a7e5
--- a/bin/read_trace	Mon Feb 04 19:19:57 2008 +0100
+++ b/bin/read_trace	Mon Feb 04 19:49:48 2008 +0100
@@ -1,4 +1,8 @@
 #!/usr/bin/python
-
-from HP3562A.trace_decoder import main
+import sys, os
+try:
+    from HP3562A.trace_decoder import main
+except ImportError:
+    sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
+    from HP3562A.trace_decoder import main
 main()

mercurial