I’m creating an image widget that is importing a png file for it’s background using cabbageCreate. I’m using just the name of the file which is in the same folder as the main csd file. This does not work. But if I do the very same widget code in the Cabbage header of the csd file with just the name of the image file, everything works.
I then went back and included the full path for the image that I was including, and it was able to display it correctly. While I get that the full path worked and why, I’m not sure how I could find that full path, other than to hardcode it in.
Is there a reason why the image can’t be found by looking in the project folder (the same folder with the csd file).