title: Python Script Image Save Directory/Filename Error
body: <p>I'm trying to save an image but I'm getting an error message saying there is no such file or directory, even though I have the picture saved.</p>
  
  <pre><code>import PIL
  from PIL import ImageFont
  from PIL import Image
  from PIL import ImageDraw
  import ctypes, time
  import urllib
  
  while 1:
      font_size = 50
  
      font = ImageFont.load_default() 
      img = Image.open('bg.bmp')
      draw = ImageDraw.Draw(img)
  
      draw.text((300, 500), 'Period 1: ')
      draw.text((300, 550), 'Period 2: ')
      draw.text((300, 600), 'Period 3: ')
      draw.text((300, 650), 'Period 4: ')
      draw.text((300, 700), 'Period 5: ')
      draw.text((300, 750), 'Period 6: ')
      draw = ImageDraw.Draw(img)
      draw = ImageDraw.Draw(img)
      img.save("mod_bg.bmp")
  
  
  
  
  
  pathToBmp = "C:\Documents and Settings\User\My Documents\My Pictures\ScreenShot.bmp"
  SPI_SETDESKWALLPAPER = 20  
  ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, pathToBmp , 0)
  
  quit()
  </code></pre>
  
  <p>this is the error message</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\Documents and Settings\User\Desktop\Project.py", line 12, in &lt;module&gt;
  img = Image.open('bg.bmp')
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 1952, in open
  fp = __builtin__.open(fp, "rb")
  IOError: [Errno 2] No such file or directory: 'bg.bmp'
  </code></pre>