protected void writePackageFiles ( QualifiedName name , String lineSeparator , IExtraLanguageGeneratorContext context ) { final IFileSystemAccess2 fsa = context . getFileSystemAccess ( ) ; final String outputConfiguration = getOutputConfigurationName ( ) ; QualifiedName libraryName = null ; for ( final String segment : name . skipLast ( 1 ) . getSegments ( ) ) { if ( libraryName == null ) { libraryName = QualifiedName . create ( segment , LIBRARY_FILENAME ) ; } else { libraryName = libraryName . append ( segment ) . append ( LIBRARY_FILENAME ) ; } final String fileName = toFilename ( libraryName ) ; if ( ! fsa . isFile ( fileName ) ) { final String content = PYTHON_FILE_HEADER + lineSeparator + getGenerationComment ( context ) + lineSeparator + LIBRARY_CONTENT ; if ( Strings . isEmpty ( outputConfiguration ) ) { fsa . generateFile ( fileName , content ) ; } else { fsa . generateFile ( fileName , outputConfiguration , content ) ; } } libraryName = libraryName . skipLast ( 1 ) ; } }
Generate the Python package files .