Catalogs:-set.xml files cam exclude themselves

Re-add the old feature, that -set.xml files can explicitly opt-out of
being included in the catalog. Useful for some development and helper /
included files in some aircraft.
This commit is contained in:
James Turner
2017-11-27 17:59:37 +00:00
parent 7ad60c4471
commit 6034143788
2 changed files with 16 additions and 0 deletions
+5
View File
@@ -35,6 +35,11 @@ def scan_set_file(aircraft_dir, set_file, includes):
if sim_node == None:
return None
# allow -set.xml files to specifcially exclude themselves from
# the creation process, by setting <exclude-from-catalog>true</>
if (sim_node.getValue("exclude-from-catalog", False) == True):
return None
variant = {}
name = sim_node.getValue("description", None)
if (name == None or len(name) == 0):