1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-02-17 11:55:35 +02:00
STARK/main.py

19 lines
496 B
Python
Raw Normal View History

2020-11-05 20:35:28 +02:00
#!/usr/local/bin/python3.8
import os
2020-11-05 20:28:18 +02:00
import config
modules = {
'Voice Assistant': 'voice_assistant',
'Telegram bot': 'telegram_bot',
}
for name, module in modules.items():
try:
print(f'launching the {name}')
2020-11-05 22:35:56 +02:00
# os.system(f'sudo chmod +x {config.path}/{module}.py')
# os.system(f'nohup {config.path}/{module}.py &')
os.system(f'lxterminal --command="python {config.path}/{module}.py"')
except:
print(f'[error]\t{name} launch failed')