AnsweredAssumed Answered

In Arcpy, what's the best way to switch between workspaces for multiple functions? 

Question asked by jburton.aor on May 14, 2019
Latest reply on May 19, 2019 by lpinner_erin

I have a script with several functions in it that use arcpy.ListFeatureClasses(). I'm having trouble pointing each function at the proper workspace. It seems like if I change the workspace inside a function then all the function calls after that use the wrong workspace. But if I set the arcpy.env.workspace inside each function it throws errors saying 

''ERROR 000732: Input Table: filename does not exist or is not supported''

 

How do I point each function at its proper workspace? Images of a couple of the functions are below:

Attachments

Outcomes