Skip to content

Commit ac70f9a

Browse files
Make it compatible with python 3.8 and 3.9
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
1 parent 9579331 commit ac70f9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rez/plugin_managers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ def load_plugins_from_namespace(self):
175175
self.print_log_plugins_error(modname, e)
176176

177177
def load_plugins_from_entry_points(self):
178-
discovered_plugins = entry_points(group='rez.plugins')
178+
if sys.version_info <= (3, 9):
179+
discovered_plugins = entry_points().get("rez.plugins", [])
180+
else:
181+
discovered_plugins = entry_points(group='rez.plugins')
182+
179183
for plugin in discovered_plugins:
180184
try:
181185
plugin = plugin.load()

0 commit comments

Comments
 (0)