Update bot.py
This commit is contained in:
parent
db7f0b6a53
commit
1e049cbc5b
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -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('.'))
|
||||
|
|
Reference in a new issue