eric7/Project/ProjectProtocolsBrowser.py

branch
eric7
changeset 9016
6f079c524e99
parent 8943
23f9c7b9e18e
equal deleted inserted replaced
9015:dfeefad914ed 9016:6f079c524e99
8 of the project. 8 of the project.
9 """ 9 """
10 10
11 import os 11 import os
12 import glob 12 import glob
13 import sys
14 import contextlib 13 import contextlib
15 14
16 from PyQt6.QtCore import QThread, pyqtSignal, QProcess 15 from PyQt6.QtCore import QThread, pyqtSignal, QProcess
17 from PyQt6.QtWidgets import QDialog, QApplication, QMenu 16 from PyQt6.QtWidgets import QDialog, QApplication, QMenu
18 17
31 BrowserClassAttributeItem 30 BrowserClassAttributeItem
32 ) 31 )
33 import UI.PixmapCache 32 import UI.PixmapCache
34 from UI.NotificationWidget import NotificationTypes 33 from UI.NotificationWidget import NotificationTypes
35 34
35 import Globals
36 import Preferences 36 import Preferences
37 import Utilities 37 import Utilities
38 38
39 39
40 class ProjectProtocolsBrowser(ProjectBaseBrowser): 40 class ProjectProtocolsBrowser(ProjectBaseBrowser):
477 exeArgs = [] 477 exeArgs = []
478 478
479 if grpc: 479 if grpc:
480 exe = Preferences.getProtobuf("grpcPython") 480 exe = Preferences.getProtobuf("grpcPython")
481 if exe == "": 481 if exe == "":
482 exe = sys.executable 482 exe = Globals.getPythonExecutable()
483 exeArgs = ['-m', 'grpc_tools.protoc'] 483 exeArgs = ['-m', 'grpc_tools.protoc']
484 else: 484 else:
485 exe = Preferences.getProtobuf("protoc") 485 exe = Preferences.getProtobuf("protoc")
486 if exe == "": 486 if exe == "":
487 exe = ( 487 exe = (

eric ide

mercurial