#NEWLINE# def file_name_split( file ) : #NEWLINE# #INDENT# import os #NEWLINE# if ( file is None ) : #NEWLINE# #INDENT# file = '' #NEWLINE# #UNINDENT# path = os . path . dirname ( file ) #NEWLINE# name = os . path . basename ( file ) #NEWLINE# ( tmp , ext ) = os . path . splitext ( file ) #NEWLINE# base_name = os . path . basename ( tmp ) #NEWLINE# return ( file , path , name , tmp , base_name )