python os get path of folder code example
Example 1: python file location path
import os
print('getcwd: ', os.getcwd())
print('__file__: ', __file__)
Example 2: python os get dir path
from os import getcwd # only import "getcwd" from os
getcwd() # Get the current working directory