19 lines
387 B
Python
19 lines
387 B
Python
"""
|
|||
|
|
包的主入口点
|
||
|
|
允许通过 python -m journal_organizer 运行
|
||
|
|
"""
|
||
|
|
|
||
|
|
import asyncio
|
||
|
|
import sys
|
||
|
|
|
||
|
|
# Handle imports with both relative and absolute paths
|
||
|
|
try:
|
||
|
|
from .main import main
|
||
|
|
except ImportError:
|
||
|
|
# Fallback to absolute imports when running as script
|
||
|
|
from main import main
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
exit_code = asyncio.run(main())
|
||
|
|
sys.exit(exit_code or 0)
|