فهرست منبع

Force order in bootstrap.m generation, such that it should be
deterministic and not vary throughout commits

Yentl Van Tendeloo 8 سال پیش
والد
کامیت
f6f1f1205c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      bootstrap/bootstrap.py

+ 2 - 2
bootstrap/bootstrap.py

@@ -211,7 +211,7 @@ def bootstrap():
                 total_alc = ""
                 binding_alc = 'Void function initialize_MMs():\n\tinitialize_SCD("models/SimpleClassDiagrams")\n'
 
-                bootstrap_models = glob.glob("bootstrap/*.mvc")
+                bootstrap_models = sorted(glob.glob("bootstrap/*.mvc"))
                 for bootstrap_model in bootstrap_models:
                     # Compile the subfile
                     bootstrap_model = bootstrap_model.replace("\\", "/")
@@ -230,7 +230,7 @@ def bootstrap():
                     mm.write(new_metamodels_alc)
 
                 # Compile all files and add to structure manually
-                bootstrap_files = glob.glob("bootstrap/*.alc") + glob.glob("bootstrap/.*.alc")
+                bootstrap_files = sorted(glob.glob("bootstrap/*.alc") + glob.glob("bootstrap/.*.alc"))
                 for bootstrap_file in bootstrap_files:
                     # Compile the subfile
                     bootstrap_file = bootstrap_file.replace("\\", "/")