Answers for "python reference parent module"

0

python reference parent module

$ cat function/bbb.py
import os
import sys

root_folder = os.path.abspath(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root_folder)

from common.aaa import say_hi

say_hi()
Posted by: Guest on November-14-2020
0

python reference parent module

from .some_module import some_class
from ..some_package import some_function
from . import some_class
Posted by: Guest on November-14-2020

Code answers related to "python reference parent module"

Python Answers by Framework

Browse Popular Code Answers by Language