basic file loccation for python code example
Example 1: python file location path
import os
print('getcwd: ', os.getcwd())
print('__file__: ', __file__)
Example 2: open file in python directory
path = 'C:\\Users\\Username\\Path\\To\\File'
file=open(path, "r")