@@ -212,7 +212,7 @@ def _is_list_of_dicts(self, scrn_mapping: Mapping) -> bool:
212212 )
213213
214214 def _allocate_widget (
215- self , support_path : Path , scrn_mapping : Mapping , component : Entity
215+ self , scrn_mapping : Mapping , component : Entity
216216 ) -> EmbeddedDisplay | ActionButton | None | list [EmbeddedDisplay | ActionButton ]:
217217 name , suffix , suffix_label = self ._initialise_name_suffix (component )
218218 # Get relative path to screen
@@ -282,10 +282,7 @@ def _create_widget(
282282 # not missing, use as name of widget, if missing,
283283 # use type as name.
284284 new_widget = []
285- base_dir = self .services_dir .parent .parent .parent
286285
287- # Get the relative path to techui-support
288- support_path = base_dir .joinpath ("src/techui_support" )
289286 try :
290287 scrn_mapping = self .techui_support [component .type ]
291288 except KeyError :
@@ -297,9 +294,9 @@ def _create_widget(
297294
298295 if self ._is_list_of_dicts (scrn_mapping ):
299296 for value in scrn_mapping :
300- new_widget .append (self ._allocate_widget (support_path , value , component ))
297+ new_widget .append (self ._allocate_widget (value , component ))
301298 else :
302- new_widget = self ._allocate_widget (support_path , scrn_mapping , component )
299+ new_widget = self ._allocate_widget (scrn_mapping , component )
303300
304301 return new_widget
305302
0 commit comments