>>> import glob >>> if glob.glob(r'C:\Users\bk6128\Documents\ArcGIS\solarTest.gdb\*.lock'): ... print True
import os.path, glob if self.params[0].altered: if glob.glob(str(self.params[0].value) + '*.ed.lock'): self.params[0].setErrorMessage("Close edit session in Target Geodatabase before continuing.")
import glob if glob.glob(str(self.params[0].value) + '\\*.ed.lock'): self.params[0].setErrorMessage("Close edit session.")
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.