Setting icons, stylesheets of imported packages based on main module's path to prevent FileNotFoundError and improve convinience.
This can be used for PySide as well. But it is not written in requirements. Basically this is for PyQt.
PyQt5 >= 5.8
python -m pip install pyqt-resource-helper
# set the icon
PyQtResourceHelper.setIcon([closeBtn], ['ico/close.png'])
# set the style
PyQtResourceHelper.setStyleSheet([closeBtn], ['style/button.css'])