Archived
1
0
Fork 0

Update bot.py

This commit is contained in:
yzhh 2021-08-23 23:20:42 +08:00
parent db7f0b6a53
commit 1e049cbc5b

2
bot.py
View file

@ -23,7 +23,7 @@ botdir = './core/bots/'
lst = os.listdir(botdir)
runlst = []
for x in lst:
bot = f'{botdir}{x}/bot.py'
bot = os.path.abspath(f'{botdir}{x}/bot.py')
if os.path.exists(bot):
p = subprocess.Popen(f'python {bot}', shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
cwd=os.path.abspath('.'))