how to know python directory code example
Example 1: working directory python
import os
cwd = os.getcwd()
Example 2: get python directiory
import sys
print('\n'.join(sys.path))
import os
cwd = os.getcwd()
import sys
print('\n'.join(sys.path))