Jason Camerano gave me this python snippet:
head, sep, tail = arcpy.Describe(parcelFabricLayer).Path.partition(".gdb")
workspacePath = head + sepexplanation:
Describe().Path returns the full path that also contains the string ".gdb"
partition separates is using the provided ".gdb" string to:
- head - before the ".gdb" string
- sep - the ".gdb" string
- tail - after the ".gdb" tring
Anyone has a better method?