python file path in directory code example
Example 1: find the path to a file python
import os
print os.path.abspath("something.exe")
Example 2: python file directory
from os import path
dir_path = path.dirname(__file__)
import os
print os.path.abspath("something.exe")
from os import path
dir_path = path.dirname(__file__)