You could use the sys module
sys
Put this on top wherever you need your icons
#main.py import sys sys.path.append('...') # Now the imports should work import icons