Python "show in finder"

Viewed 13050

How can I launch a new Finder window (or Explorer on Win) from python in a specific folder. The behaviour I'm looking for is the equivalent of "Show in finder" link in a tracks context menu in iTunes or most other programs come to think of it.

What I have currently is a UI built with PyQt and I'd like to add a menu option like "show log folder" or something similar, which would pop up a new finder window.

UPDATE:

From katrielalex advice trying subprocess.Popen("/System/Library/CoreServices/Finder.app") throws and OSError: Permission denied. Trying to launch the Finder.app by double clicking it says that it is in use by OS X and cannot be opened.

Surely there must be a way to open a new Finder window.

4 Answers
Related