mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Don't process layouting node inside templates
This commit is contained in:
parent
505ff9a540
commit
7465212cf0
@ -103,7 +103,11 @@ def main():
|
||||
for node in root.iter_elements("nodes"):
|
||||
node_name = node.get_attribute("id").value
|
||||
scheme_list.append("\t" + get_id(node_name) + " = \"" + node_name + "\"")
|
||||
process_component(node_name, component_name)
|
||||
|
||||
is_template = node.get_attribute("template")
|
||||
is_in_template = "/" in node_name
|
||||
if not is_template and not is_in_template:
|
||||
process_component(node_name, component_name)
|
||||
|
||||
if len(component_define) > 2:
|
||||
component_define = "\n" + component_define
|
||||
|
@ -7,8 +7,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
is_defree_installed=$(pip3 list --disable-pip-version-check | grep -E "deftree")
|
||||
if [ -z "$is_defree_installed" ]; then
|
||||
echo "The python deftree is not installed. Installing..."
|
||||
pip3 install deftree
|
||||
echo "The python deftree is not installed. Please install it via"
|
||||
echo "pip3 install deftree"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
python3 $DIR/create_druid_component.py $@
|
||||
|
@ -7,8 +7,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
is_defree_installed=$(pip3 list --disable-pip-version-check | grep -E "deftree")
|
||||
if [ -z "$is_defree_installed" ]; then
|
||||
echo "The python deftree is not installed. Installing..."
|
||||
pip3 install deftree
|
||||
echo "The python deftree is not installed. Please install it via"
|
||||
echo "pip3 install deftree"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
python3 $DIR/setup_layers.py $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user