file path in variable python code example
Example 1: find the path to a file python
import os
print os.path.abspath("something.exe")
Example 2: file path in python for windows
outputFileName = 'Destination/With/Forward/Slash/filename.txt'
import os
print os.path.abspath("something.exe")
outputFileName = 'Destination/With/Forward/Slash/filename.txt'