#Import system modules
import arcpy
from arcpy import env
#Workspace
env.workspace = "E:\User\MillageCode"
#Variables
input = "Sales_2006.shp"
clip = "EagleHarborSales_temp.shp"
output = "Output_temp5.shp"
#Clip the Sales_2006 shapefile to the EagleHarborSales_temp shapefile
arcpy.Clip_analysis(input, clip, output)
#Info
print arcpy.GetMessages()
#Import modules
import arcpy, os, sys
from arcpy import env
#Workspace
arcpy.env.workspace = arcpy.GetParameterAsText(0)
#Variables
input = arcpy.GetParameterAsText(1)
clip = arcpy.GetParameterAsText(2)
output = arcpy.GetParameterAsText(3)
#Clip
arcpy.Clip_analysis(input, clip, output)
#Info
print arcpy.GetMessages()
"E:\User\MillageCode"
shouldn't work, you need \\ instead of \ or append r to the front of the path
Executing: Clip E:\User\MillageCode\Sales_2006.shp E:\User\MillageCode\EagleHarborSales_temp.shp E:\User\MillageCode\Output_temp5.shp #
Start Time: Tue Jul 16 07:35:46 2013
Reading Features...
Cracking Features...
Assembling Features...
Succeeded at Tue Jul 16 07:35:46 2013 (Elapsed Time: 0.00 seconds)