AnsweredAssumed Answered

Listing feature classes in a GP Service - workspace question

Question asked by MollyKFoley on Mar 21, 2018
Latest reply on Mar 29, 2018 by JQuinn-esristaff

I have a python script that utilizes arcpy.ListFeatureClasses() with a keyword/substing specified to get the feature class of interest and set it to a variable. In order to use this method, you have to have arcpy.env.workspace set. I would like to publish this script as a GP service, but it's my understanding you want to avoid ever setting the arcpy.env.workspace since intermediate data should really be put in the scratch folders of the individual jobs. How do you handle this?

Outcomes