This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
testexetrisathlon/DownloadDataDepsInstall.py

8 lines
257 B
Python

import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
if not "youtube-dl" in packages:
packages = ["youtube-dl"] + packages
call("pip install --upgrade " + ' '.join(packages), shell=True)