Skip to content

Commit ffbe7f6

Browse files
Fix python compat again...
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
1 parent ac70f9a commit ffbe7f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rez/plugin_managers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os.path
1717
import sys
1818

19-
if sys.version_info >= (3, 8):
19+
if sys.version_info[:2] >= (3, 8):
2020
from importlib.metadata import entry_points
2121
else:
2222
from rez.vendor.importlib_metadata import entry_points
@@ -175,7 +175,7 @@ def load_plugins_from_namespace(self):
175175
self.print_log_plugins_error(modname, e)
176176

177177
def load_plugins_from_entry_points(self):
178-
if sys.version_info <= (3, 9):
178+
if sys.version_info[:2] < (3, 10):
179179
discovered_plugins = entry_points().get("rez.plugins", [])
180180
else:
181181
discovered_plugins = entry_points(group='rez.plugins')

0 commit comments

Comments
 (0)