import os fil=os.path.abspath("report.md") drkt=os.path.dirname(fil) fp=open(file=drkt+'/TEMA6/zapis1.txt',mode='w')