mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #39125 from Xrayez/py-modules-order-4.0
SCons: use `OrderedDict` to ensure insertion order of modules
This commit is contained in:
commit
105bef19ff
2 changed files with 6 additions and 4 deletions
|
@ -2,6 +2,7 @@ import os
|
|||
import re
|
||||
import glob
|
||||
import subprocess
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
def add_source_files(self, sources, files, warn_duplicates=True):
|
||||
|
@ -138,7 +139,7 @@ def parse_cg_file(fname, uniforms, sizes, conditionals):
|
|||
|
||||
|
||||
def detect_modules(at_path):
|
||||
module_list = {} # name : path
|
||||
module_list = OrderedDict() # name : path
|
||||
|
||||
modules_glob = os.path.join(at_path, "*")
|
||||
files = glob.glob(modules_glob)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue