Salome HOME
fix archive not found in product
authorChristian Van Wambeke <christian.van-wambeke@cea.fr>
Wed, 11 Apr 2018 08:42:58 +0000 (10:42 +0200)
committerChristian Van Wambeke <christian.van-wambeke@cea.fr>
Wed, 11 Apr 2018 08:42:58 +0000 (10:42 +0200)
src/debug.py
src/product.py

index e1ab251b1a0af00cd5a48eec7feda9b88660a1fa..1bc2618e88ee9e5afa711f929a3a982722fc718e 100644 (file)
@@ -45,6 +45,10 @@ to set show message temporary as development phase, only in a method:
 
 to set a message for future fix, as temporary problem to not forget:
 DBG.tofix("aTitle", aVariable, True/False) #True/False in production shown, or not
+
+in command line interface you could redirect stderr to file 'myDebug.log':
+>> sat compile ... 2> myDebug.log   # only stderr
+>> sat compile ... &> myDebug.log   # stdout and stderr
 """
 
 import os
index 5eb207942b5c2353bd22491ffaa46a5f8f03c543..fba1c42459cd36d69a4bb93d52582cc4eb7aa3af 100644 (file)
@@ -196,7 +196,9 @@ Please add a section in it.""") % {"1" : vv, "2" : prod_pyconf_path}
                     DBG.tofix(msg, config.PATHS.ARCHIVEPATH) #avoid 2 messages in compile
                     prod_info.archive_info.archive_name = arch_name #without path
                     # raise src.SatException(msg) #may be a warning, continue #8646
-                prod_info.archive_info.archive_name = arch_path
+                else:
+                    prod_info.archive_info.archive_name = arch_path
+
         
     # If the product compiles with a script, check the script existence
     # and if it is executable