I am using pygame and I am trying to locate my folder but it won't locate it!
The command I am using is:
Game_folder = os.path.dirname(__file__)
Or
Game_folder = os.path.dirname(is.path.abspath(__file__))
Neither of these work.
I am trying to locate the directory:
C:/Users/user/Documents/python/pygame games
It prints out:
Python.exe can't open C:/Users/user/Documents/python/pygame games.py
exit code 2
This error appears for both of the codes.
I am using PyCharm as my IDE
And my imports are pygame, random, os
I can't progress without it and I am following along with a playlist on YouTube (kidscancode), but the video is a bit older so I have to search up on the internet on how to adapt the code.