Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
renwei committed Dec 16, 2016
1 parent 284ecbb commit 80a0080
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/gapttest.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ def makeEntry(self, name, default='', cmd=None):

def askopenfilename_model(self):
filename = tkFileDialog.askopenfilename(initialdir = self.initdir, filetypes = [('tensorflow checkpoint file', '.ckpt'), ('tensorflow checkpoint meta files', '.ckpt.meta'), ('all files', '*')])
if filename.endswith('.ckpt.meta'):
if filename and filename.endswith('.ckpt.meta'):
filename = filename[:-5]
self.textvariables['model'].set(filename)
self.initdir = os.path.dirname(filename)
self.textvariables['model'].set(filename)
self.initdir = os.path.dirname(filename)
def close(self):
self.quit()
def resize(self, event):
Expand Down

0 comments on commit 80a0080

Please sign in to comment.