chiark / gitweb /
Set the default SD replicate folder differently on linux and mac.
authordaid <daid303@gmail.com>
Fri, 30 Jan 2015 14:30:00 +0000 (15:30 +0100)
committerdaid <daid303@gmail.com>
Fri, 30 Jan 2015 14:30:00 +0000 (15:30 +0100)
Cura/util/profile.py

index d94ed3f8559d81c825d523eb40a8f635ff17ec62..33b7288f070331ceab8e9cdb1e1b3469174c9d32 100644 (file)
@@ -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 = ''