(hooke_cli.py) fixed export - bug 0011
authordevicerandom <devnull@localhost>
Fri, 3 Jul 2009 17:55:00 +0000 (17:55 +0000)
committerdevicerandom <devnull@localhost>
Fri, 3 Jul 2009 17:55:00 +0000 (17:55 +0000)
hooke_cli.py
mfp1dexport.py

index 65e91936a2de5b48a59c2bf3349b828ee8bdc937..0f1fdbb5e0bcad0491f58b9b4c0a2290bda78404 100755 (executable)
@@ -632,8 +632,11 @@ If you have a multiple plot, the optional plot to export argument tells Hooke wh
         #FIXME: the bottom plot doesn't have the title
         
         dest=0
-        if args=='':
-            name=linp.safeinput('Filename?',[self.current.path+'.png'])
+        
+        if len(args)==0:
+            #FIXME: We have to go into the libinput stuff and fix it, for now here's a dummy replacement...
+            #name=linp.safeinput('Filename?',[self.current.path+'.png'])
+            name=raw_input('Filename? ')
         else:
             args=args.split()
             name=args[0]
index 1fd0be3b9686f6365732a1aa59e8fca11b180aa8..c9f94045d922027637c9dad7b8248f78f348a44c 100644 (file)
@@ -35,6 +35,7 @@ class mfp1dexportDriver(lhc.Driver):
         self.filedata.close()
         
     def is_me(self):
+        #FIXME: We want a more reasonable header recognition
         if self.raw_header[0][0:4]=='Wave':
             return True
         else: