这完全取决于您 运行的 脚本。该脚本的路径将自动添加到python的搜索路径。
使其具有以下结构:
TestApp/TestApp/READMETestApp/LICENSETestApp/setup.pyTestApp/run_test.pyTestApp/testapp/__init__.pyTestApp/testapp/testmsg.pyTestApp/testapp/sub/TestApp/testapp/sub/__init__.pyTestApp/testapp/sub/testprinter.py
然后
TestApp/run_test.py先 运行:
from testapp.sub.testprinter import functest ; functest()
然后
TestApp/testapp/sub/testprinter.py可以做:
from testapp.testmsg import MSGprint("The message is: {0}".format(testmsg.MSG))这里有更多好的提示;



