code to open the file on desktop in python using os module code example
Example 1: how to make all my files to work together in python
>>> import os
>>> entries = os.listdir('my_directory/')
Example 2: how to open folder in python
import webbrowser
path = "C:/Users/Username/PycharmProjects"
webbrowser.open(path) # Opens 'PycharmProjects' folder.