how do i get file path in python code example
Example 1: python get filename from path
import os
print(os.path.basename(your_path))
Example 2: get pyhton file path python
import os
os.path.realpath(__file__)
import os
print(os.path.basename(your_path))
import os
os.path.realpath(__file__)