Zelda
Zelda copied to clipboard
help me please
I keep running into this problem and I think its because of the Mac paths but I don't know how to fix it, please help ,
File "/Users/mac/Desktop/ISS1/code/main.py", line 30, in
thank you
you pathLib and get the parent file path then merge. I did all mine in a settings file:
main_dir = Path(file).resolve().parent background_1_dir = os.path.join(main_dir, r"Graphics\background\ground.png")
then when loading image, use the background_1_dir, hope this helps