From 99093f559f37e0eb514296ce60a1b6772810ffb1 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Mon, 16 Jan 2017 13:35:00 +0100 Subject: [PATCH] [Core] Empty importer cache on pip install This ensures that the newly installed libs will be seen by the importer --- red.py | 1 + 1 file changed, 1 insertion(+) diff --git a/red.py b/red.py index e5c493910..c64b8b88c 100644 --- a/red.py +++ b/red.py @@ -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)