]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[bos #32522][EDF] SALOME on Demand. Small refact: changed log output, edit docstrings.
authorKonstantin Leontev <konstantin.leontev@opencascade.com>
Wed, 14 Dec 2022 13:43:58 +0000 (16:43 +0300)
committerKonstantin LEONTEV <konstantin.leontev@opencascade.com>
Wed, 8 Mar 2023 12:46:28 +0000 (13:46 +0100)
bin/SalomeOnDemandTK/extension_builder.py
bin/SalomeOnDemandTK/extension_query.py
bin/SalomeOnDemandTK/extension_remover.py
bin/SalomeOnDemandTK/extension_unpacker.py

index d1b8b311330abccd0e57a1e6a6cdee8937972ef4..59bf47ae18ad80e2f55302843784b76daee547d7 100644 (file)
@@ -85,9 +85,6 @@ def create_salomex(salomexb, salomexd, env_py, top_repository):
         env_py - a path to the <ext>_env.py file.
         top_repository - a root directory for all the paths listed inside salomexb file.
 
-    Raises:
-        Raises OSError exception.
-
     Returns:
         None.
     """
index 216fdd7395d66ad4c4df6ab064b57bf027654fe2..600a9d30a3b95a80ddfb2c1375cfc8c122bccf08 100644 (file)
@@ -156,7 +156,7 @@ def size_bylist(root_dir, salomexc):
                     continue
 
                 else:
-                    logger.error('Unexpected path %s '
+                    logger.warning('Unexpected path %s '
                         'is not a file, link or directory. Skip.',
                         path_to_file)
 
@@ -269,4 +269,6 @@ if __name__ == '__main__':
         ext_size_str(arg_1, arg_2)
     else:
         logger.error('You must provide all the arguments!')
-        logger.info(dir_size.__doc__)
+        logger.info(dir_size_str.__doc__)
+        logger.info(dependency_tree.__doc__)
+        logger.info(ext_size_str.__doc__)
index d0b6d1dc87043166895066f8eda553367180caa9..0d3124c5bc1aeaa02cbc1a4eabf68130101d0e32 100644 (file)
@@ -112,7 +112,7 @@ def remove_bylist(root_dir, salomexc):
                     shutil.rmtree(path_to_remove)
 
                 else:
-                    logger.error('Unexpected path %s!'
+                    logger.warning('Unexpected path %s!'
                         'It is not a file or directory. Skip.',
                         path_to_remove)
 
@@ -177,7 +177,7 @@ def remove_salomex(install_dir, salomex_name):
     if env_py:
         os.remove(env_py)
     else:
-        logger.error('Cannot find and remove %s file! ', env_py)
+        logger.warning('Cannot find and remove %s file! ', env_py)
 
     # Remove description file
     if salomexd:
index b8ad07a4b44c0c33ac18d98cddfcf28e328ec18a..47355b7722b08ea84b3d662cb28cfe59efaaa872 100644 (file)
@@ -49,10 +49,6 @@ def unpack_salomex(salome_root, salomex):
         salome_root - path to SALOME install root directory.
         salomex - a given salomex file to unpack.
 
-    Raises:
-        OSError exception.
-        KeyError exception if a file can not be found in the archive.
-
     Returns:
         None.
     """