2020-11-05 20:35:28 +02:00
|
|
|
#!/usr/local/bin/python3.8
|
2020-08-30 00:40:02 +03:00
|
|
|
import os
|
2020-11-05 20:28:18 +02:00
|
|
|
import config
|
2020-08-30 00:40:02 +03:00
|
|
|
|
|
|
|
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"')
|
|
|
|
|
2020-08-30 00:40:02 +03:00
|
|
|
except:
|
|
|
|
print(f'[error]\t{name} launch failed')
|