Closed MikeMillerGIS closed 7 years ago
In case you where interested, found a great way to parse a string.
instead of .rfind("."), use rpartition(".")[-1]
This always gets just the FC name regardless of the string return os.path.basename(os.path.normpath(dataset)).rpartition('.')[-1]
Leave a comment
In case you where interested, found a great way to parse a string.
instead of .rfind("."), use rpartition(".")[-1]
This always gets just the FC name regardless of the string return os.path.basename(os.path.normpath(dataset)).rpartition('.')[-1]