Index: __init__.py =================================================================== --- __init__.py (revision 72225) +++ __init__.py (working copy) @@ -281,9 +281,10 @@ [(feature.id, component)]) def make_short(self, file): - parts = file.split(".") - if len(parts)>1: - suffix = parts[-1].upper() + # return a tuple with the name of file and its extension + parts = os.path.splitext(file) + if parts[1]: # if the file don't has a extension, parts[1] = '' + suffix = parts[1].upper() else: suffix = None prefix = parts[0].upper()