Simplify devupdate
This commit is contained in:
parent
91b4d81192
commit
4b2d297367
10
dev.py
10
dev.py
|
|
@ -7,13 +7,9 @@ root_dir = sys.path[0]
|
|||
|
||||
|
||||
def devupdate(args):
|
||||
with subprocess.Popen(
|
||||
[sys.executable, '-m', 'pip', 'install', '-r',
|
||||
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)
|
||||
subprocess.run(
|
||||
[sys.executable, '-m', 'pip', 'install', '-r',
|
||||
os.path.join(root_dir, 'dev-python-requirements.txt'), ])
|
||||
|
||||
|
||||
def run(args):
|
||||
|
|
|
|||
Loading…
Reference in New Issue