mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-05-24 21:53:46 +08:00
14 lines
367 B
Python
14 lines
367 B
Python
"""CowAgent CLI - Manage your CowAgent from the command line."""
|
|
|
|
import os as _os
|
|
|
|
def _read_version():
|
|
version_file = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "VERSION")
|
|
try:
|
|
with open(version_file, "r") as f:
|
|
return f.read().strip()
|
|
except FileNotFoundError:
|
|
return "0.0.0"
|
|
|
|
__version__ = _read_version()
|