get default path python code example
Example 1: get path to current directory python
import os
os.path.abspath(os.getcwd())
Example 2: get python directiory
import sys
print('\n'.join(sys.path))
import os
os.path.abspath(os.getcwd())
import sys
print('\n'.join(sys.path))