how to open a directory or a file in python code example
Example 1: open file in python directory
path = 'C:\\Users\\Username\\Path\\To\\File'
file=open(path, "r")
Example 2: python file directory
from os import path
dir_path = path.dirname(__file__)