From: daid Date: Fri, 30 Jan 2015 14:30:00 +0000 (+0100) Subject: Set the default SD replicate folder differently on linux and mac. X-Git-Tag: 15.01~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=aae6ab0e31ab662a0c317b016a31a7ceb7fa8c16;p=cura.git Set the default SD replicate folder differently on linux and mac. --- 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 = ''