how to find the current path in python code example
Example 1: get path to current directory python
import os
os.path.abspath(os.getcwd())
Example 2: sys get current pythonpath
import sys
print(sys.version)
print(sys.path)
import os
os.path.abspath(os.getcwd())
import sys
print(sys.version)
print(sys.path)