sys get current pythonpath code example
Example 1: python get current file location
import os
os.path.dirname(os.path.abspath(__file__))
Example 2: findstr current folder
Just specify all posible files names in current directory with regex *:
findstr string_to_search *
Example 3: sys get current pythonpath
import sys
print(sys.version)
print(sys.path)