#imports
from tkinter import *
import os
#Window Creation
window = Tk()
window.title('Potato Defense')
window.configure(width=1500, height=1500)
window.configure(bg='lightblue')
photo = PhotoImage(file = r"TestButton.png")
Button(window, text = 'Click Me !', image = photo).pack(side = TOP)
window.mainloop()
my code is quite janky, but currently, my image location gives an error because I don't know how to get the current location of files I don't want my directory I want it to work on other pcs. how do I get a current directory?
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ