From: dpt Date: Wed, 1 Feb 2017 10:59:07 +0000 (+0100) Subject: Pour designer les scripts de compilation sur WIndows à partir du nom Linux. X-Git-Tag: 5.0.0a1~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=decf3b9ffd3218c565be989447d701ede56b462d;p=tools%2Fsat.git Pour designer les scripts de compilation sur WIndows à partir du nom Linux. --- diff --git a/src/product.py b/src/product.py index c1cf33b..9c6729d 100644 --- a/src/product.py +++ b/src/product.py @@ -201,6 +201,8 @@ def get_product_config(config, product_name, with_install_dir=True): raise src.SatException(_("Compilation script not found: %s") % script_name) prod_info.compil_script = script_path + if src.architecture.is_windows(): + prod_info.compil_script = prod_info.compil_script[:-len(".sh")] + ".bat" # Check that the script is executable if not os.access(prod_info.compil_script, os.X_OK):