Is it possible to loop through all models in a custom toolbox and run them instead of having to list them individually in the script?
Here is my script.
import arcpy
# Import custom toolbox
tbx = arcpy.ImportToolbox("E:\HostedFeatureLayers\Stormwater\Stormwater\Default.atbx")
try:
tbx.UpdateswInlet()
print("Finished Append: swInlet")
tbx.UpdateswManhole()
print("Finished Append: swManhole")
tbx.UpdateswDischargePoint()
print("Finished Append: swDischargePoint")
tbx.UpdateswWeirStructure()
print("Finished Append: swWeirStructure")
tbx.UpdateswOpenDrain()
print("Finished Append: swOpenDrain")
tbx.UpdateswPipe()
print("Finished Append: swPipe")
tbx.UpdateswDetention()
print("Finished Append: swDetention")
except arcpy.ExecuteError:
print(arcpy.GetMessages(2))