TestProject Forum

Imagecomparison osx path /usr

Hi anybody know how to not hardcode the /usr part of the path in osx? Say I want to just use /desktop/screenshots

I tried ~/desktop/screenshots
$HOME/desktop/screenshots

none of the above work, anyway to avoid hardcoding a usr folder?

Hello @elsidaliaj
$USER for Mac, Linux.
%USERNAME% for windows.

what would be the path? I’m using this $USER/Desktop/Screenshots/ still not working