title: Get the file name of file from executeble
body: <p>I am afraid I do not know how to phrase my problem, but <a href="https://stackoverflow.com/questions/28004975/get-pathfilename-of-file-that-was-opened-with-my-application">this</a> post asks about what I am trying to say. However, I was wondering if this was possible in Python. (once again, sorry for my lack of being able to explain my problem).</p>
  
  <p>I have tried the <code>sys.argv[0]</code> command, but this only gives me the path of the executable, where I want the path of a file opened with the executable.</p>