diff --git a/main.py b/main.py index 4294e15..2992b7c 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ import os +import config modules = { 'Voice Assistant': 'voice_assistant', @@ -8,6 +9,6 @@ modules = { for name, module in modules.items(): try: print(f'launching the {name}') - os.system(f'start python {module}.py') + os.system(f'nohup {config.path}/{module}.py &') except: print(f'[error]\t{name} launch failed') diff --git a/telegram_bot.py b/telegram_bot.py index a03de7e..5e567ef 100644 --- a/telegram_bot.py +++ b/telegram_bot.py @@ -1,3 +1,4 @@ +#!/usr/local/bin/python3.8 from Command import Command import SpeechRecognition import Text2Speech diff --git a/voice_assistant.py b/voice_assistant.py index dfddb9d..77fa7d5 100644 --- a/voice_assistant.py +++ b/voice_assistant.py @@ -1,3 +1,4 @@ +#!/usr/local/bin/python3.8 import SpeechRecognition import Text2Speech from Command import Command