From 3d31f7453d7676fd6c6af09bcb74e6b9f13c66cb Mon Sep 17 00:00:00 2001 From: Mark Spicer Date: Thu, 23 Apr 2015 23:38:49 -0400 Subject: [PATCH] Fixed default export directory --- roastero/modules/gui/MainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roastero/modules/gui/MainWindow.py b/roastero/modules/gui/MainWindow.py index b33048c..be2b59a 100644 --- a/roastero/modules/gui/MainWindow.py +++ b/roastero/modules/gui/MainWindow.py @@ -171,8 +171,8 @@ def import_recipe_file(self): def export_recipe_file(self): try: - recipeFile = QFileDialog.getSaveFileName(self, 'Export Recipe','', - 'Recipes (*.json);;All Files (*)') + recipeFile = QFileDialog.getSaveFileName(self, 'Export Recipe', + os.path.expanduser('~/'), 'Recipes (*.json);;All Files (*)') jsonObject = json.dumps(self.roast.get_recipe_object().get_current_recipe(), indent=4) file = open(recipeFile[0], 'w')