mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
fix: 执行pip的操作后未重置logging
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
from pip._internal import main as pipmain
|
||||
|
||||
import main
|
||||
|
||||
|
||||
def install(package):
|
||||
pipmain(['install', package])
|
||||
main.reset_logging()
|
||||
|
||||
|
||||
def install_requirements(file):
|
||||
pipmain(['install', '-r', file])
|
||||
main.reset_logging()
|
||||
|
||||
|
||||
def ensure_dulwich():
|
||||
|
||||
Reference in New Issue
Block a user