I want to construct a function using subprocess on files without knowing their path : I've tried all the os.path functions, but it seems to work only in the current directory :
import os.path
os.path.abspath('file')
>>>"current/path/of/the/script/file"
But the file is not in the current directory and this output path is false. Is there a way to retrieve the path of a given file ?
EDIT: this post for finding files is interesting if you know where to search. But the path tree of the system which contains the file is not known. The file names are normalized and uniques (no doubles files in all the system).