bin/read_state

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

mercurial