#NEWLINE# @ staticmethod #NEWLINE# def getPyQtPluginDirs( qt_version ) : #NEWLINE# #INDENT# command = ( 'from __future__ import print_function\n\nimport PyQt%(qt_version)d.QtCore\nfor v in PyQt%(qt_version)d.QtCore.QCoreApplication.libraryPaths():\n    print(v)\nimport os\nguess_path = os.path.join(os.path.dirname(PyQt%(qt_version)d.__file__), "plugins")\nif os.path.exists(guess_path):\n    print("GUESS:", guess_path)\n' % { #NEWLINE# #INDENT# 'qt_version' : qt_version , #NEWLINE# #UNINDENT# } ) #NEWLINE# output = subprocess . check_output ( [ sys . executable , '-c' , command ] ) #NEWLINE# if ( python_version >= 300 ) : #NEWLINE# #INDENT# output = output . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# result = [ ] #NEWLINE# for line in output . replace ( '\r' , '' ) . split ( '\n' ) : #NEWLINE# #INDENT# if ( not line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if line . startswith ( 'GUESS: ' ) : #NEWLINE# #INDENT# if result : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# line = line [ len ( 'GUESS: ' ) : ] #NEWLINE# #UNINDENT# result . append ( Utils . normpath ( line ) ) #NEWLINE# #UNINDENT# return result