So I have this font ./files/resources/COMIC.TTF
And I reference the font like this: font = pygame.font.Font('./files/resources/COMIC.TTF', 12)
So I ran this on cmd python files/opencv_ball_tracker.py and sure enough it works.
But when I cd files then run python opencv_ball_tracker.py it fails with FileNotFoundError: [Errno 2] No such file or directory: './files/resources/COMIC.TTF'.
How do I make it so that it works no matter where I run the file?