Обновить main.py

This commit is contained in:
Xander 2023-10-18 13:28:27 +03:00
parent 2af75cd9c6
commit bacddb4fd7
1 changed files with 8 additions and 10 deletions

18
main.py
View File

@ -1,11 +1,9 @@
import subprocess
def start():
# Замените 'your_script.py' на имя вашего файла
file_to_run = 'on.py'
# Запускаем файл
subprocess.run(['python', file_to_run])
if __name__ == '__main__':
import subprocess
def start():
file_to_run = 'on.py'
subprocess.run(['python', file_to_run])
if __name__ == '__main__':
start()