#NEWLINE# @ staticmethod #NEWLINE# def userFolder( ) : #NEWLINE# #INDENT# filename_encoding = sys . getfilesystemencoding ( ) #NEWLINE# if ( platform . system ( ) == 'Windows' ) : #NEWLINE# #INDENT# folder = os . path . join ( AppFolders . windowsAppDataFolder ( ) , 'ComicStreamer' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( platform . system ( ) == 'Darwin' ) : #NEWLINE# #INDENT# folder = os . path . join ( os . path . expanduser ( '~' ) , 'Library/Application Support/ComicStreamer' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# folder = os . path . join ( os . path . expanduser ( '~' ) , '.ComicStreamer' ) #NEWLINE# #UNINDENT# #UNINDENT# if ( folder is not None ) : #NEWLINE# #INDENT# folder = folder . decode ( filename_encoding ) #NEWLINE# #UNINDENT# return folder