Simplify devupdate
This commit is contained in:
parent
91b4d81192
commit
4b2d297367
8
dev.py
8
dev.py
|
|
@ -7,13 +7,9 @@ root_dir = sys.path[0]
|
||||||
|
|
||||||
|
|
||||||
def devupdate(args):
|
def devupdate(args):
|
||||||
with subprocess.Popen(
|
subprocess.run(
|
||||||
[sys.executable, '-m', 'pip', 'install', '-r',
|
[sys.executable, '-m', 'pip', 'install', '-r',
|
||||||
os.path.join(root_dir, 'dev-python-requirements.txt'), ],
|
os.path.join(root_dir, 'dev-python-requirements.txt'), ])
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1,
|
|
||||||
universal_newlines=True) as pip:
|
|
||||||
for line in pip.stdout:
|
|
||||||
print(line, end='', flush=True)
|
|
||||||
|
|
||||||
|
|
||||||
def run(args):
|
def run(args):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue