2022-07-22 12:31:52 +02:00
|
|
|
#!/usr/bin/python3
|
2023-01-19 10:33:49 +01:00
|
|
|
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
2022-07-22 12:31:52 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import subprocess
|
2022-11-02 12:15:34 +01:00
|
|
|
from sys import stdout
|
|
|
|
|
|
|
|
stdout.reconfigure(encoding='utf-8')
|
2022-07-22 12:31:52 +02:00
|
|
|
|
|
|
|
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"])
|
2022-08-07 12:24:07 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
install_requirements()
|