title: Python Script doesn't work properly as Geoprocessing Service
body: <p>I have banged my head against the wall on this for days now, I need help. 
  I’m trying to create a geoprocessing service (which will be used via a flex viewer) that takes permit information from a GDB, writes it to a file, and then opens it on the user’s computer. </p>
  
  <p>The script I have written works perfectly on local computers and when run from the server itself. 
  However, as soon as the script has been published as a geoprocessing service, it stops opening the file. </p>
  
  <p>The file is created out on a webserver, and then opened via url so that the user can then make a local copy, print out for signature, etc. The file is still being created, named, and placed in the proper folder, it just isn’t being opened at end of the process. (The GP Service views as completed though, it doesn’t fail)</p>
  
  <p>Here is the end of the code, which is the part relevant to my issue:</p>
  
  <pre><code>f = open(r'\\MyWebAddressHere\\Reports\\Permit' + str(PermitNumber) +'.html','w')
  
  f.write(permitStart)        
  if (BasePermitFee &gt; 0):  
      f.write(permitBaseFee)        
  if (PlumbingFee &gt; 0):
      f.write(permitPlumbingFee)        
  if (ElectricFee &gt; 0):
      f.write(permitElectricFee)              
  if (TotalFees &gt; 0):
      f.write(permitTotalFee)
  f.write(permitEnd)
  
  f.close()               
  
  webbrowser.open('MyWebAddressHere/Reports/Permit' + str(PermitNumber) +'.html')
  </code></pre>
  
  <p>Does anyone have a suggestion on why the open is failing once the GP service is published?</p>