how to get a path to a file pyht code example
Example: python file location path
import os
print('getcwd: ', os.getcwd())
print('__file__: ', __file__)
import os
print('getcwd: ', os.getcwd())
print('__file__: ', __file__)