From bacddb4fd7b8184c2a24d10689a3d4013ead5e80 Mon Sep 17 00:00:00 2001 From: Xander Date: Wed, 18 Oct 2023 13:28:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 65672e6..4f8ca16 100644 --- a/main.py +++ b/main.py @@ -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() \ No newline at end of file