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()
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()
run a python module with imports from parent
from setuptools import setup, find_packages
setup(name='myproject', version='1.0', packages=find_packages())
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us