I have a program that needs a file to send over a socket, but I'm not sure how to get the file from the user. I was thinking something like this:
file_direc = input("Please enter the directory of the file: ")
f = open(file_direc, "r")
but I'm not sure how to access the user's directory. Is there any way to do this?