mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
Backwards compatibility for py setting strings
This commit is contained in:
@@ -97,6 +97,12 @@ class settings_mixin:
|
|||||||
def get(self, k):
|
def get(self, k):
|
||||||
return self.get_(self.name(k))
|
return self.get_(self.name(k))
|
||||||
|
|
||||||
|
def __getattr__(self, k):
|
||||||
|
if k in map(self.rname, self.setting_names()):
|
||||||
|
return k
|
||||||
|
else:
|
||||||
|
raise AttributeError("'Settings' object has no attribute '%s'" % k)
|
||||||
|
|
||||||
|
|
||||||
class serializer_settings(settings_mixin, ifcopenshell_wrapper.SerializerSettings):
|
class serializer_settings(settings_mixin, ifcopenshell_wrapper.SerializerSettings):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user