Skip to content

Commit

Permalink
Fixed recipe import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
betterengineering committed Apr 24, 2015
1 parent cba6d99 commit e9d21ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roastero/modules/gui/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def change_blocked_button(self, index):

def import_recipe_file(self):
try:
recipeFile = QFileDialog.getOpenFileName(self, 'Select Recipe','',
'/', 'Recipes (*.json);;All Files (*)')
copy2(recipeFile[0], os.path.expanduser('~/Documents/Roastero/recipes/'))
recipeFile = QFileDialog.getOpenFileName(self, 'Select Recipe',
os.path.expanduser('~/'), 'Recipes (*.json);;All Files (*)')
copy2(recipeFile[0], os.path.expanduser('~/Documents/Roastero/recipes/local'))
except FileNotFoundError:
# Occurs if file browser is canceled
pass
Expand Down

0 comments on commit e9d21ba

Please sign in to comment.