From aae6ab0e31ab662a0c317b016a31a7ceb7fa8c16 Mon Sep 17 00:00:00 2001 From: daid Date: Fri, 30 Jan 2015 15:30:00 +0100 Subject: [PATCH] Set the default SD replicate folder differently on linux and mac. --- Cura/util/profile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cura/util/profile.py b/Cura/util/profile.py index d94ed3f8..33b7288f 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -489,7 +489,10 @@ setting('filament_cost_meter', '0', float, 'preference', 'hidden').setLabel(_("C setting('auto_detect_sd', 'True', bool, 'preference', 'hidden').setLabel(_("Auto detect SD card drive"), _("Auto detect the SD card. You can disable this because on some systems external hard-drives or USB sticks are detected as SD card.")) def _getMyDocumentsFolder(): - path = os.path.expanduser('~/Documents') + if platform.system() == "Windows": + path = os.path.expanduser('~/Documents') + else: + path = os.path.expanduser('~/') if not os.path.exists(path): path = '' -- 2.30.2