fix: 修复热更新的一些问题

This commit is contained in:
Soulter
2023-04-03 18:44:47 +08:00
parent 4aad04b31a
commit 3e45ec0a08
+4 -1
View File
@@ -44,7 +44,10 @@ class Command:
else:
if l[1] == "latest":
try:
repo = Repo()
try:
repo = Repo()
except git.exc.InvalidGitRepositoryError:
repo = Repo(path="QQChannelChatGPT")
repo.remotes.origin.pull()
py = sys.executable
os.execl(py, py, *sys.argv)