#test_ixTestC.py #By D@CC on 2023KNov01 # import sys sys.path.append("/home/pi/Desktop/IX_assets/ix") # prev 2 statements, needed if modules are # in the ...pkg progName="test_ixTestC.py" #Purpose: test from .. import .. #Note: ix_pkg.py is in Desktop/ix # Note that this package library folder # must contain a function (file) named "ixTestC.py" # referred to after the "from " word # I suggest using ix_pkg.py # and if current folder is Desktop print("progName:",progName) print("imports modules from pkg:ix_pkg_tiny.py") print(" which is in '/home/pi/Desktop/IX_assets/ix'") print(" not necessary to use ix_pkg.ixTestC()") from ix_pkg import ixTestC #from ixTestA import ixTestA # if ixTestA.py is NOT in ix_pkg.py # but IS in the current folder a=ixTestC("abc") print("a:",a) saved in 215.html as test_ixTestC.py.txt /test_ixTestC.py