this is my file system: source: |_ folder1: myfile.py |_ folder2: infile.py
I am currently working with "infile.py" and I want to import myfile.py from folder1, doing the following:
from ..folder1.myfile import *
result: ImportError: attempted relative import with no known parent package
in my file I don't have any class, only functions, so I don't know if it is necessary to create a class in order to import a file as a module in Python.