Explain __init__.py and __main__.py use
parent
194465544a
commit
203ba10dbd
|
@ -1 +1,2 @@
|
||||||
|
# ran on `import morss`
|
||||||
from .morss import *
|
from .morss import *
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# ran on `python -m morss`
|
||||||
from .morss import main
|
from .morss import main
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue