#Master script to loop def runcmd(cmd, format='s'): import subprocess proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE) stdout,stderr=proc.communicate() exit_code=proc.wait() return exit_code,stdout,stderr for dir in <list of directories>: cmd ='%s %s %s' % (<path to python>, <path to your script>, dir) exit_code,stdout,stderr = runcmd(cmd)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.