-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.py
More file actions
23 lines (18 loc) · 722 Bytes
/
install.py
File metadata and controls
23 lines (18 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import subprocess
import os
import sys
def install_requirements():
try:
# Get the directory where this script is located
current_dir = os.path.dirname(os.path.abspath(__file__))
# Path to requirements.txt
requirements_path = os.path.join(current_dir, 'requirements.txt')
# Install requirements
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', requirements_path])
print("Successfully installed AetherOnePySocial plugin dependencies")
return True
except Exception as e:
print(f"Error installing requirements: {str(e)}")
return False
if __name__ == '__main__':
install_requirements()