import subprocess subprocess.Popen(r'explorer /select,"C:pathoffolderfile"')
import webbrowser path = "C:/Users/Username/PycharmProjects" webbrowser.open(path) # Opens 'PycharmProjects' folder.