title: Python script gives `: No such file or directory`
body: <p>I have several python scripts which work just fine but one script has (as of this morning) started giving me this error if I try to run it from the bash:</p>
  
  <blockquote>
    <p>: No such file or directory</p>
  </blockquote>
  
  <p>I am able to run the 'broken' script by doing <code>python script_name.py</code> and after looking around a bit the general idea that I picked up was that maybe my line ending of the hashbang got changed (silently) so I looked at the line ending of a working script and a broken script via the <code>:set list</code> option in VI as indicated in this question -> <a href="https://stackoverflow.com/questions/3569997/view-line-endings-in-a-text-file">View line-endings in a text file</a></p>
  
  <p>Both files appear to end using the same character (a <code>$</code>) so I am kind of at a loss on how to proceed from here. Specifically, how to actually 'see' the line ending in case the <code>set list</code> was not the right method. </p>
  
  <p>PS: The script is executable and the shebang is in there, I stated that it's just this 1 script that was working fine before the weekend but it started giving me this error as of this morning.</p>
  
  <p>-- edit: --</p>
  
  <p>Running the script through <code>dos2unix</code> does get it working again but I would like to know of any way to visualize the line ending somehow in VI(M) or why Geany somehow converted the line endings in the first place (as I never work on a dos/windows system anyhow).</p>