title: Python stdin filename
body: <p>I'm trying to get the filename thats given in the command line. For example:</p>
  
  <blockquote>
    <p>python3 ritwc.py &lt; DarkAndStormyNight.txt</p>
  </blockquote>
  
  <p>I'm trying to get DarkAndStormyNight.txt</p>
  
  <p>When I try fileinput.filename() I get back  same with sys.stdin. Is this possible? I'm not looking for sys.argv[0] which returns the current script name. </p>
  
  <p>Thanks!</p>