Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in __init__.py:
- print('************')
- in y__init__.py:
- if __name__ == '__main__':
- print('__init__.py directly exectuted!')
- else:
- print("be imported!")
- in helloWord.py:
- import y__init__
- print("hello word!")
- in main.py:
- from some_modules import helloWord
- ************
- be imported!
- hello word!
Add Comment
Please, Sign In to add comment