def get_normalized_file_path(file_path):
 if hasattr(sys, 'frozen'):
  file_path = ('logging%s__init__%s' % (os.sep, file_path[(-4):]))
 elif (file_path[(-4):].lower() in ['.pyc', '.pyo']):
  file_path = (file_path[:(-4)] + '.py')
 else:
  file_path = file_path
 file_path = os.path.normcase(file_path)
 return file_path

def get_normalized_file_path ( file_path ) : if hasattr ( sys , 'frozen' ) : file_path = ( 'logging%s__init__%s' % ( os . sep , file_path [ ( - 4 ) : ] ) ) elif ( file_path [ ( - 4 ) : ] . lower ( ) in [ '.pyc' , '.pyo' ] ) : file_path = ( file_path [ : ( - 4 ) ] + '.py' ) else : file_path = file_path file_path = os . path . normcase ( file_path ) return file_path
return a full normalized file path for the provided path string .