Skip to content

Commit

Permalink
Fix python compat again...
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Feb 2, 2025
1 parent ac70f9a commit ffbe7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rez/plugin_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os.path
import sys

if sys.version_info >= (3, 8):
if sys.version_info[:2] >= (3, 8):
from importlib.metadata import entry_points
else:
from rez.vendor.importlib_metadata import entry_points
Expand Down Expand Up @@ -175,7 +175,7 @@ def load_plugins_from_namespace(self):
self.print_log_plugins_error(modname, e)

def load_plugins_from_entry_points(self):
if sys.version_info <= (3, 9):
if sys.version_info[:2] < (3, 10):
discovered_plugins = entry_points().get("rez.plugins", [])
else:
discovered_plugins = entry_points(group='rez.plugins')
Expand Down

0 comments on commit ffbe7f6

Please sign in to comment.