Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sync MBI generators with upstream modifications
[simgrid.git] / teshsuite / smpi / MBI / CollMatchingGenerator.py
index 19bb925e2a89b6773272046ad1a261fc2c332a50..f3ffc4edd538e774c757d321ec7cdb489096fb12 100755 (executable)
@@ -1,4 +1,9 @@
 #! /usr/bin/python3
+
+# Copyright 2021-2022. The MBI project. All rights reserved.
+# This program is free software; you can redistribute it and/or modify it under the terms of the license (GNU GPL).
+
+import os
 import sys
 from generator_utils import *
 
@@ -82,7 +87,7 @@ for c1 in coll + icoll + ibarrier:
     for c2 in coll + icoll + ibarrier:
         patterns = {}
         patterns = {'c1': c1, 'c2': c2}
-        patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {sys.argv[0]}. DO NOT EDIT.'
+        patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {os.path.basename(sys.argv[0])}. DO NOT EDIT.'
         patterns['collfeature'] = 'Yes' if c1 in coll or c2 in coll else 'Lacking'
         patterns['icollfeature'] = 'Yes' if c1 in icoll + ibarrier or c2 in icoll + ibarrier else 'Lacking'
         patterns['c1'] = c1