#!/bin/bash
pyuic5 MainWindow.ui >  Ui_MainWindow.py
pyuic5 DataWidget.ui >  Ui_DataWidget.py
pyuic5 CrossSectionWidget.ui >  Ui_CrossSectionWidget.py
pyuic5 HydraulicWidget.ui >  Ui_HydraulicWidget.py
pyuic5 BathymetricWidget.ui > Ui_BathymetricWidget.py
pyuic5 PlotWidget.ui > Ui_PlotWidget.py
pyuic5 ReachDischarge.ui > Ui_ReachDischarge.py

sed -i  '12i\from ..FigureWidget import FigureWidget' Ui_PlotWidget.py
sed -i '$ d' Ui_PlotWidget.py