bin/qgpibplotter

changeset 35
3b7a38af5c42
parent 32
59da528bc470
child 40
1bbea188a7e5
--- a/bin/qgpibplotter	Sat Jan 26 11:39:30 2008 +0100
+++ b/bin/qgpibplotter	Sun Feb 03 23:39:27 2008 +0100
@@ -1,4 +1,8 @@
 #!/usr/bin/python
-
-from plotter.qgpib_plotter import main
+import sys, os
+try:
+    from plotter.qgpib_plotter import main
+except ImportError:
+    sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
+    from plotter.qgpib_plotter import main
 main()

mercurial