1import subprocess
2subprocess.Popen(r'explorer /select,"C:\path\of\folder\file"')
1import webbrowser
2
3path = "C:/Users/Username/PycharmProjects"
4webbrowser.open(path) # Opens 'PycharmProjects' folder.
1import subprocess
2subprocess.Popen(r'explorer /select,"C:\path\of\folder\file"')
3
4#I am going to find a way to make it so that if you code into the thing, then it will open a file you want