I have a one.py as:
one.py
def file_save():
f = th1.asksaveasfile(mode='w', defaultextension=".txt")
filename = f.name
I have another file two.py where i need to open 'filename' from 'one.py':
from one import filename
with open(filename,'w'):
print('hello')
please help me to fix the problem,its not getting filename.Answers will be appreciated!