Archived
1
0
Fork 0

Update bot.py

This commit is contained in:
yzhh 2022-01-13 23:58:19 +08:00
parent d0d585c7d3
commit dbb4a732b1

2
bot.py
View file

@ -57,7 +57,7 @@ def run_bot():
for x in lst:
bot = os.path.abspath(f'{botdir}{x}/bot.py')
if os.path.exists(bot):
p = subprocess.Popen(f'python -B {bot}', shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
p = subprocess.Popen(['python', bot], shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
cwd=os.path.abspath('.'))
runlst.append(p)
pidlst.append(p.pid)