mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
16 lines
418 B
Python
16 lines
418 B
Python
#!/usr/bin/python3
|
|
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()
|