From 10f3744e9fa898ed0f7730abbfa55ffef3bc05bc Mon Sep 17 00:00:00 2001 From: Michal Fratczak Date: Mon, 23 Dec 2024 17:15:04 +0100 Subject: [PATCH] Fix rez.system is_production_rez_install property to handle forward slash paths under windows. This allows to import rez module from paths with forward slashes. The following code printed "False" before the fix: import sys sys.path.append('C:/rez_test/Lib/site-packages') from rez.system import system print( 'is_production_rez_install', system.is_production_rez_install ) Signed-off-by: Michal Fratczak --- src/rez/system.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rez/system.py b/src/rez/system.py index 8486a71af..2ad3e6cc5 100644 --- a/src/rez/system.py +++ b/src/rez/system.py @@ -207,6 +207,7 @@ def rez_bin_path(self): # import rez module_path = rez.__path__[0] + module_path = os.path.normpath(module_path) parts = module_path.split(os.path.sep) parts_lower = module_path.lower().split(os.path.sep)