Added modular directory structure.
[hooke.git] / hooke / plugin / viewer.py
index 42f4b6d38c3ae62da449931394fa297302e704e7..43f74aee2d5404201818586ce8ca7b32f463e4f2 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 '''
 Viewer test case
 
@@ -9,10 +7,10 @@ This program is released under the GNU General Public License version 2.
 '''
 
 
-import libviewer as lview
-import libinput as linput
+from .. import libviewer as lview
+from .. import libinput as linput
 
-class viewerCommands:
+class viewerCommands(object):
        
     def _plug_init(self):
         self.viewerlist=[]
@@ -23,7 +21,7 @@ class viewerCommands:
     def do_vwnew(self,args):
         #creates a new viewer
         self.viewerlist.append(lview.Ascii(self.outlet))
-        dt=linput.safeinput('What type of data will this viewer handle? (force/distance/all)',['force', 'distance', 'all']) 
+        dt=linput.safeinput('What type of data will this viewer handle? (force/distance/all)',['force', 'distance', 'all'])
                     #TODO update types, make a list somewhere?
         print dt
         self.viewerlist[-1].setdtype(dt)
@@ -36,4 +34,4 @@ class viewerCommands:
 
         if len(args)==0:
             args=0
-        self.viewerlist[int(args)].action()
\ No newline at end of file
+        self.viewerlist[int(args)].action()