From 40039e65df84eba1b20ff2f42616b89d596aeaf4 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sun, 14 Mar 2021 23:20:51 +0200 Subject: [PATCH] Ivccsv fixes (#1385) * ifccsv: Fix reference to invalid variable * ifccsv: Remove unused import --- src/ifccsv/ifccsv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ifccsv/ifccsv.py b/src/ifccsv/ifccsv.py index 6dbf949b2e..99edbaf4a1 100755 --- a/src/ifccsv/ifccsv.py +++ b/src/ifccsv/ifccsv.py @@ -6,7 +6,6 @@ import ifcopenshell.util.selector import ifcopenshell.util.element import ifcopenshell.util.schema import csv -import lark import argparse @@ -21,7 +20,7 @@ class IfcAttributeSetter: if "." not in key: return element if key[0:3] == "Qto": - qto, prop = key.split(".", 1) + qto_name, prop = key.split(".", 1) qto = IfcAttributeSetter.get_element_qto(element, qto_name) if qto: IfcAttributeSetter.set_qto_property(qto, prop, value)