mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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:
parent
b1e20d8b76
commit
99093f559f
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user