Salome HOME
sat #8922 : affichage d'un message clair pour un chemin non existant d'un prerequis...
[tools/sat.git] / src / product.py
index 5bd554dab5f77c8f5e5b7f9fe07e5a3fbf512fc2..3fd1a2f190aad62d5b2df7025f14f2f5e4022a53 100644 (file)
@@ -136,7 +136,11 @@ def get_product_config(config, product_name, with_install_dir=True):
         
         # In case of a fixed product, 
         # define the install_dir (equal to the version)
-        if prod_info is not None and os.path.isdir(version):
+        if prod_info is not None and \
+           (os.path.isdir(version) or version.startswith("/")):
+           # we consider a (fixed) path  existing paths; 
+           # or paths starting with '/' (the objective is to print a correct 
+           # message to the user in case of non existing path.)
             prod_info.install_dir = version
             prod_info.get_source = "fixed"