[Core] Empty importer cache on pip install

This ensures that the newly installed libs will be seen by the importer
This commit is contained in:
Twentysix 2017-01-16 13:35:00 +01:00
parent b1e20d8b76
commit 99093f559f

1
red.py
View File

@ -217,6 +217,7 @@ class Bot(commands.Bot):
def install():
code = subprocess.call(args)
sys.path_importer_cache = {}
return not bool(code)
response = self.loop.run_in_executor(None, install)