diff options
author | daid <daid303@gmail.com> | 2015-01-30 17:30:00 +0300 |
---|---|---|
committer | daid <daid303@gmail.com> | 2015-01-30 17:30:00 +0300 |
commit | aae6ab0e31ab662a0c317b016a31a7ceb7fa8c16 (patch) | |
tree | e8f4e35fc0f5553ed8b056fa8286366a669441ef | |
parent | f2f9f6d1d97eec136acfc7f88a1b6d906371bd39 (diff) |
Set the default SD replicate folder differently on linux and mac.
-rw-r--r-- | Cura/util/profile.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Cura/util/profile.py b/Cura/util/profile.py index d94ed3f855..33b7288f07 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 = '' |