1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-01 08:09:48 +02:00
ScreenPlay/Tools/install_requirements.py
2023-01-19 10:33:49 +01:00

17 lines
493 B
Python

#!/usr/bin/python3
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
import os
import sys
import subprocess
from sys import stdout
stdout.reconfigure(encoding='utf-8')
def install_requirements():
print("Set up required python modules")
script_path = os.path.dirname(os.path.realpath(__file__))
subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", script_path + "/requirements.txt"])
if __name__ == "__main__":
install_requirements()