The function arcpy.TestSchemaLock() takes as input a dataset for which it returns TRUE or FALSE depending if a schema lock is in place. This works great for a Table or FeatureClass but it needs to be able to test a workspace, specifically a personal geodatabase.
Unless ESRI plan to drop all support for a personal geodatabase (which they have done for ArcGIS Pro) then it would be a simple and effective improvement on this function if it was able to take a dataset OR a Workspace and return the boolean.
I have scripts that write to personal geodatabases and these can very easily get locked by another application or user. You could argue that I should be writing to a file geodatabase but there are good reasons for wanting to write to a personal geodatabase.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.