You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
643 B
31 lines
643 B
# pEp package
|
|
# This file is being exectued upon 'import pEp'
|
|
#
|
|
# __all__ could be used to limit the symbols exported when using from <pkg> 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()
|