Simplify devupdate

This commit is contained in:
Matthew Gordon 2024-03-02 20:01:48 -04:00
parent 91b4d81192
commit 4b2d297367
1 changed files with 3 additions and 7 deletions

10
dev.py
View File

@ -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):