eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 9168
0c3e506eddf6
parent 9074
1afb90182258
child 9192
a763d57e23bc
child 9207
c0b4ca34de2f
equal deleted inserted replaced
9167:2d2b9a26e904 9168:0c3e506eddf6
378 multiprocessEnabled = ( 378 multiprocessEnabled = (
379 '--multiprocess' if Preferences.getDebugger("MultiProcessEnabled") 379 '--multiprocess' if Preferences.getDebugger("MultiProcessEnabled")
380 else '' 380 else ''
381 ) 381 )
382 382
383 execPath = project.getProjectExecPath() 383 if venvName:
384 interpreter = project.getProjectInterpreter() 384 venvManager = ericApp().getObject("VirtualEnvManager")
385 interpreter = venvManager.getVirtualenvInterpreter(venvName)
386 execPath = venvManager.getVirtualenvExecPath(venvName)
387 else:
388 venvName = project.getProjectVenv()
389 execPath = project.getProjectExecPath()
390 interpreter = project.getProjectInterpreter()
385 if interpreter == "": 391 if interpreter == "":
386 EricMessageBox.critical( 392 EricMessageBox.critical(
387 None, 393 None,
388 self.tr("Start Debugger"), 394 self.tr("Start Debugger"),
389 self.tr( 395 self.tr(

eric ide

mercurial