Solved! Go to Solution.
>>> import glob >>> if glob.glob(r'C:\Users\bk6128\Documents\ArcGIS\solarTest.gdb\*.lock'): ... print True
>>> 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.")