get python path from python code example
Example 1: get path to current directory python
import os
os.path.abspath(os.getcwd())
Example 2: find the path to a file python
import os
print os.path.abspath("something.exe")
import os
os.path.abspath(os.getcwd())
import os
print os.path.abspath("something.exe")