I'm trying to publish a fairly simple Geoprocessing script that will allow a user to extract some points to a zipped shapefile. When I try to publish this service to ArcServer 10.2.1 it reports that the scratch folder I'm using for the shapefile: "script contains broken project data source." Here is the code referencing the scratch folder:
outputDir = os.path.join(scriptPath,"ScratchAPD")
if not os.path.exists(outputDir):
os.mkdir(scriptPath+"\\ScratchAPD")
How can I get this to successfully publish? Is there a different method of referencing a scratch folder that will be used in a geoprocessing script? Thank you!