# pEp package # This file is being exectued upon 'import pEp' # # __all__ could be used to limit the symbols exported when using from import * # Import all symbols EXCEPT the ones beginning with underscore into the current namespace from native_pEp import * # TODO: inter-pkg ref to make sure which native_pEp in sys.path gets loaded # like: pEp.native_pEp # import the module import native_pEp # Executed on module import def init(): print("init() called") native_pEp._init() # Executed when run as script def main(): print("I am being run as a script") # MAIN if __name__ == "__main__": main() else: init()