jamiejackson

Untitled

May 13th, 2011
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. #!C:/Python26/ArcGIS10.0/python.exe -u
  2. import cgi
  3. # Enable debugging
  4. import cgitb; cgitb.enable()
  5. # GIS Imports
  6. import pyodbc
  7. import arcpy
  8. ##import time # Use time module if there is asynch trouble and need unique file name (just append timeshamps to file name)
  9.  
  10. ##### Output data in Java properties format (for want of a simple format) ######
  11. print "Content-Type: text/html"     # HTML is following
  12. print                               # blank line, end of headers
  13.  
  14. ## Jamie messing around to figure out why arcpy won't import
  15. import os
  16. import sys
  17. print sys.path
  18. sys.path.insert(0, "C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\Bin")
  19. sys.path.insert(0, "C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\arcpy")
  20. sys.path.insert(0, "C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\ArcToolbox\\Scripts")
  21.  
  22. print "<hr>"
  23. print sys.path
  24. print "<hr>"
  25. print os.getcwd()
  26. #end messing around
Advertisement
Add Comment
Please, Sign In to add comment