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