How to get the full path to the file or program in Windows, for its / its further opening using subprocess?
Answer 1, Authority 100%
import os
Print (os.path.abspath ("MyDir / MyFile.txt"))
'C: /Example/cwd/Mydir/myFile.txt'
borrowed here
https://stackoverflow.com/questions/51520/how- to-get-an-absolute-file-path-in-python