The code is unable to read the txt file after importing the class in another python file gives file not found error code is something as followed:
Text file is in DIR named folder having a python class and a txt file
class Module:
    def __init__(self):
        file = open('../DIR/temp.txt','r+')
        self.lines = file.readlines()
    def OUT(self):
        print(self.lines)
md = Module()
print(md.OUT())
from DIR.module1 import Module
import DIR
import sys 
md = Module()
print(md.OUT())
 
    