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-06 13:51:05 +02:00
|
|
|
os.system(f'lxterminal --command="python3.8 {config.path}/{module}.py"')
|
2020-08-30 00:40:02 +03:00
|
|
|
except:
|
|
|
|
print(f'[error]\t{name} launch failed')
|
2021-02-21 21:06:00 +02:00
|
|
|
|
|
|
|
os.system(f'lxterminal --command="python3.8 {config.path}/manage.py runserver 192.168.0.129:8000"')
|
|
|
|
os.system(f'lxterminal --command="vlc"')
|