Skip to content

v0.5.7 - Fix non-Windows CLI startup

Choose a tag to compare

@Aetherialter Aetherialter released this 14 Jul 14:30
· 52 commits to main since this release

v0.5.7

修复

  • 修复 Linux/macOS 等非 Windows 环境下启动 CLI 失败的问题。
  • 原因是 workspace.py 顶层导入了 Windows 专属的 os.startfile,导致在 Linux 上执行 uv run lc --help 时直
    接抛出 ImportError
  • 现在改为按平台选择打开方式:
    • Windows: os.startfile
    • macOS: open
    • Linux: xdg-open

文档

  • README 当前版本更新为 v0.5.7
  • 环境要求从仅 Windows 更新为 Windows / Linux / macOS。
  • 补充 lc solve 生成模板后会尝试打开 solution.py 的跨平台说明。

验证

  • uv run lc --help
  • uv run ruff check src pyproject.toml tests
  • uv run pytest

测试结果:12 passed