mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00
Update __init__.py
This commit is contained in:
parent
98ee7c6e68
commit
b0c700c3aa
@ -58,9 +58,6 @@ def get_user_input(string_to_search: str = None):
|
||||
if user_response.lower() == 'back':
|
||||
bot.send_message("Ritorno al menu principale...", None)
|
||||
|
||||
# Gestire il "back" qui è complesso perché Popen e sys.exit terminano lo script corrente.
|
||||
# Idealmente, la logica di "back" dovrebbe essere gestita dal chiamante (run.py)
|
||||
# o restituendo un valore speciale. Per ora, manteniamo il riavvio ma è subottimale.
|
||||
try:
|
||||
subprocess.Popen([sys.executable] + sys.argv)
|
||||
sys.exit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user