feat: 调用pip解决依赖

This commit is contained in:
Rock Chin
2023-01-16 21:34:35 +08:00
parent 82d845b5c8
commit 78c73def8a
3 changed files with 67 additions and 0 deletions

View File

@@ -240,6 +240,12 @@ if __name__ == '__main__':
elif len(sys.argv) > 1 and sys.argv[1] == 'update':
try:
try:
import pkg.utils.pkgmgr
pkg.utils.pkgmgr.ensure_dulwich()
except:
pass
from dulwich import porcelain
repo = porcelain.open_repo('.')