Files
journal_organizer/__main__.py
T

19 lines
387 B
Python
Raw Normal View History

"""
包的主入口点
允许通过 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)