title: Python: Error raised for scripts saved on server
body: <p>I'm hoping this is a simple issue and I'm just missing something. I have a script saved in two different locations, on our shared server and locally on my desktop. When I run the script from the server I get what appears to be easygui error. </p>
  
  <pre><code>Traceback (most recent call last):
     File "Z:\Python\module1.py", line 35, in &lt;module&gt;
        reply = buttonbox(msg=msg,image=IMG)
  TypeError: buttonbox() got an unexpected keyword argument 'msg'
  </code></pre>
  
  <p>This I can get around. For some reason, message is required for the version that is saved on the server and msg is required for the version saved on my desktop. That is ok since it at least works. What breaks this for me is the image feature. It works in the version on my desktop but I have no idea how to get it to work on the version on our server. Full code shown below:</p>
  
  <pre><code>import PIL
  from PIL import Image
  import os
  from easygui import *
  import sys
  print sys.version, sys.version_info
  
  WORKDIR = "c:\\temp"
  DESKTOP = 'c:' + os.environ['HOMEPATH'] + "\Desktop"
  os.chdir(DESKTOP)
  IMAGES = os.listdir(DESKTOP+"\\New Items Images")
  for IMAGE in IMAGES:
  
  path = DESKTOP+"\\New Items Images\\"+IMAGE
  
  #Creates a Tkinter-compatible photo image, which can be used everywhere Tkinter expects an image object.
  img = Image.open(path)
  width, height = img.size
  if width &gt;= height:
      basewidth = 600
      wpercent = (basewidth / float(img.size[0]))
      hsize = int((float(img.size[1]) * float(wpercent)))
  else:
      baseheight = 600
      hpercent = (baseheight / float(img.size[1]))
      wsize = int((float(img.size[0]) * float(hpercent)))
  img = img.resize((basewidth, hsize), PIL.Image.ANTIALIAS)
  
  img.save(DESKTOP + "\\" + IMAGE)
  
  
  IMG = DESKTOP+"\\"+IMAGE
  SKU = "sku"
  msg = "Is %s acceptable?\n%s\n%sx%s" % (IMAGE, SKU, width, height)
  reply = buttonbox(msg=msg,image=IMG)
  if ynbox == 1:
      print "This would now get pushed to CA"
  </code></pre>
  
  <p>`
  Generally speaking I know that this is probably ugly code. But that aside, what the end game goal here is to open an image, display it to the user, then delete all created imaged from desktop. Any advice or help would be greatly appreciated.</p>