How to make a path like C:\Users\henry\Documents\maya\2020\prefs\icons\LayerTree universal for me to use? so if anyone gets to use this script, all they need to do is just place the icon folder inside prefs\icons
Example:
import maya.cmds as cmds
from functools import partial
for i in range(1):
cmds.button(label=‘Base layer’, c=partial(Base_layer, i))
cmds.image(‘Base_{0}’.format(i), i=“C:\Users\henry\Documents\maya\2020\prefs\icons\LayerTree”)
Because of the way the code is composed, i cant use cmds.internalVar (upd = True) + icons\LayerTree\
so, how to approach this with cmds.image directly?