Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!C:/Python26/ArcGIS10.0/python.exe -u
- import cgi
- # Enable debugging
- import cgitb; cgitb.enable()
- # GIS Imports
- import pyodbc
- import arcpy
- ##import time # Use time module if there is asynch trouble and need unique file name (just append timeshamps to file name)
- ##### Output data in Java properties format (for want of a simple format) ######
- print "Content-Type: text/html" # HTML is following
- print # blank line, end of headers
- ## Jamie messing around to figure out why arcpy won't import
- import os
- import sys
- print sys.path
- sys.path.insert(0, "C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\Bin")
- sys.path.insert(0, "C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\arcpy")
- sys.path.insert(0, "C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\ArcToolbox\\Scripts")
- print "<hr>"
- print sys.path
- print "<hr>"
- print os.getcwd()
- #end messing around
Advertisement
Add Comment
Please, Sign In to add comment