From 2fd362a1d58726a2500810ce834a6de2906420f3 Mon Sep 17 00:00:00 2001 From: Migatu Date: Wed, 19 Jun 2024 18:31:10 +0200 Subject: [PATCH] another approach --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index e850298..0099f70 100644 --- a/bot.py +++ b/bot.py @@ -19,7 +19,6 @@ import shutil import sys import threading import uuid -import subprocess from datetime import datetime from logging import handlers from pathlib import Path, PurePath @@ -1375,7 +1374,7 @@ async def zrestartuj_radio(ctx): if not allowed: await ctx.send("Łapy precz od radia") else: - subprocess.call(['sh', '/home/pi/Conjurer/restart_radio.sh']) + os.system('/home/pi/Conjurer/restart_radio.sh') @client.hybrid_command(