how could do print the path directory of my file saved with python. For ad example, i start with idle3 (Fedora 24), i save the IDLE code on: /home/jetson/Desktop/Python/Programs and in the code is written:
f = open("Hello.txt","w")
f.write("This is a test","\n")
f.close()
My question is: after f.close i would print the directory grabbed with
import sys.os
print("The file is saved in ",direcotrysaved)
It's possible?
.pyfile, which does not have to be whereopenwill open the file.