if sys.platform == 'darwin':

    def openFolder(path):
        subprocess.check_call(['open', '--', path])
elif sys.platform == 'linux2':

    def openFolder(path):
        subprocess.check_call(['xdg-open', '--', path])
elif sys.platform == 'win32':

    def openFolder(path):
        subprocess.check_call(['explorer', path])
Python: Opening a folder in Explorer/Nautilus/Mac-thingie