From a11900ba46d1896a64d88cce766e67a0dfb3674e Mon Sep 17 00:00:00 2001 From: devicerandom Date: Fri, 3 Jul 2009 17:55:00 +0000 Subject: [PATCH] (hooke_cli.py) fixed export - bug 0011 --- hooke_cli.py | 7 +++++-- mfp1dexport.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hooke_cli.py b/hooke_cli.py index 65e9193..0f1fdbb 100755 --- a/hooke_cli.py +++ b/hooke_cli.py @@ -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] diff --git a/mfp1dexport.py b/mfp1dexport.py index 1fd0be3..c9f9404 100644 --- a/mfp1dexport.py +++ b/mfp1dexport.py @@ -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: -- 2.26.2