]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
sort software info by product name
authorCédric Aguerre <cedric.aguerre@edf.fr>
Fri, 3 Feb 2017 14:44:55 +0000 (15:44 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Fri, 3 Feb 2017 14:44:55 +0000 (15:44 +0100)
bin/salomeContext.py

index fdbec33d52e2e2554bc89c4282a4b6804fc11695..79cc1ce10272097fc3021f51c289585a2c41b5bc 100644 (file)
@@ -440,7 +440,9 @@ class SalomeContext:
         if versions.has_key(soft.upper()):
           print soft.upper().rjust(max_len), versions[soft.upper()]
     else:
-      for name, version in versions.items():
+      import collections
+      od = collections.OrderedDict(sorted(versions.items()))
+      for name, version in od.iteritems():
         print name.rjust(max_len), versions[name]
     pass