wasurenakusa / engine

The modular ai conversation engine
GNU Affero General Public License v3.0
0 stars 1 forks source link

Restart process when a plugin installation new dependencies #17

Open chr1st0ph3rGG opened 3 weeks ago

chr1st0ph3rGG commented 3 weeks ago

Right now the currentnon restarting approach could lead to failing behavior ... in theory we could do something like

import os
import sys

python = sys.executable
os.execl(python, python, *sys.argv)

But we should add functionality to prevent some kind of restart loop...