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