Python | os.path.realpath () method

What is the difference between os.path.basename() and os.path.dirname()?

os.path.dirname(__file__) returns empty

Generating matplotlib graphs without a running X server

_tkinter.TclError: no display name and no $DISPLAY environment variable

Generating a PNG with matplotlib when DISPLAY is undefined

Selenium using Python - Geckodriver executable needs to be in PATH

Make Notepad using Tkinter