chiark / gitweb /
MacOS show file instead of directroy when using open file location button.
authordaid303 <daid303@gmail.com>
Mon, 5 Nov 2012 14:15:00 +0000 (15:15 +0100)
committerdaid303 <daid303@gmail.com>
Mon, 5 Nov 2012 14:15:00 +0000 (15:15 +0100)
Cura/util/exporer.py

index 0c4ceebd1dbafe5577618263c020e8c61210f5e8..109711b48a8ed9243e00528349e49470b6a1db2a 100644 (file)
@@ -14,7 +14,7 @@ def openExporer(filename):
        if sys.platform == 'win32' or sys.platform == 'cygwin':
                subprocess.Popen(r'explorer /select,"%s"' % (filename))
        if sys.platform == 'darwin':
-               subprocess.Popen(['open', os.path.split(filename)[0]])
+               subprocess.Popen(['open', '-R', filename])
        if sys.platform.startswith('linux'):
                if os.path.isfile('/usr/bin/nautilus'):
                        subprocess.Popen(['/usr/bin/nautilus', os.path.split(filename)[0]])