Skip to content

Commit

Permalink
issue #109: core: meta_path regression in newer Pythons
Browse files Browse the repository at this point in the history
Python at some point (at least since https://bugs.python.org/issue14605)
began populating sys.meta_path with its internal importer classes,
meaning that interpreters no longer start with an empty sys.meta_path.
  • Loading branch information
dw committed Nov 7, 2018
1 parent 4db2168 commit 57504ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mitogen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@ def _setup_importer(self):

self.importer = importer
self.router.importer = importer
sys.meta_path.append(self.importer)
sys.meta_path.insert(0, self.importer)

def _setup_package(self):
global mitogen
Expand Down

0 comments on commit 57504ba

Please sign in to comment.