I'm making an e-mail sending script in Python, in which the code for the attachment is as follows:
filename = "Output.txt"
attachment = open("/root/Desktop/test/output/project/file.txt", "rb")
Now, the problem is the directory output has been changed as per the name of my project. So is there any way that I can use a global name for this?