mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[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:
1
red.py
1
red.py
@@ -217,6 +217,7 @@ class Bot(commands.Bot):
|
|||||||
|
|
||||||
def install():
|
def install():
|
||||||
code = subprocess.call(args)
|
code = subprocess.call(args)
|
||||||
|
sys.path_importer_cache = {}
|
||||||
return not bool(code)
|
return not bool(code)
|
||||||
|
|
||||||
response = self.loop.run_in_executor(None, install)
|
response = self.loop.run_in_executor(None, install)
|
||||||
|
|||||||
Reference in New Issue
Block a user