I want to read a file in a different directory
Add the following code to __init__.py
under the directory where the file you want to read is located.
import os, sys
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
Recommended Posts