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.
2020-02-24 15:20:42 +01:00
|
|
|
import pkg_resources
|
|
|
|
from subprocess import call
|
|
|
|
|
|
|
|
|
|
|
|
packages = [dist.project_name for dist in pkg_resources.working_set]
|
|
|
|
if not "youtube-dl" in packages:
|
2020-06-20 14:17:13 +02:00
|
|
|
packages = ["youtube-dl"] + packages
|
2020-02-24 15:20:42 +01:00
|
|
|
call("pip install --upgrade " + ' '.join(packages), shell=True)
|