Project/Project.py

changeset 6352
4bdc6503df81
parent 6303
ec9ebaf206fb
child 6437
3dd851d1edf8
equal deleted inserted replaced
6351:27ce01e44a5f 6352:4bdc6503df81
433 self.subdirs = [""] 433 self.subdirs = [""]
434 # record the project dir as a relative path (i.e. empty path) 434 # record the project dir as a relative path (i.e. empty path)
435 self.otherssubdirs = [] 435 self.otherssubdirs = []
436 self.vcs = None 436 self.vcs = None
437 self.vcsRequested = False 437 self.vcsRequested = False
438 self.dbgInterpreter = '' 438 self.dbgVirtualEnv = ''
439 self.dbgCmdline = '' 439 self.dbgCmdline = ''
440 self.dbgWd = '' 440 self.dbgWd = ''
441 self.dbgEnv = '' 441 self.dbgEnv = ''
442 self.dbgReportExceptions = True 442 self.dbgReportExceptions = True
443 self.dbgExcList = [] 443 self.dbgExcList = []
1240 """ 1240 """
1241 Private method to initialize the debug properties. 1241 Private method to initialize the debug properties.
1242 """ 1242 """
1243 self.debugPropertiesLoaded = False 1243 self.debugPropertiesLoaded = False
1244 self.debugProperties = { 1244 self.debugProperties = {
1245 "INTERPRETER": "", 1245 "VIRTUALENV": "",
1246 "DEBUGCLIENT": "", 1246 "DEBUGCLIENT": "",
1247 "ENVIRONMENTOVERRIDE": False, 1247 "ENVIRONMENTOVERRIDE": False,
1248 "ENVIRONMENTSTRING": "", 1248 "ENVIRONMENTSTRING": "",
1249 "REMOTEDEBUGGER": False, 1249 "REMOTEDEBUGGER": False,
1250 "REMOTEHOST": "", 1250 "REMOTEHOST": "",
1280 Public method to retrieve a debugger property. 1280 Public method to retrieve a debugger property.
1281 1281
1282 @param key key of the property (string) 1282 @param key key of the property (string)
1283 @return value of the property 1283 @return value of the property
1284 """ 1284 """
1285 return self.debugProperties[key] 1285 if key == "INTERPRETER":
1286 1286 return e5App().getObject("VirtualEnvManager")\
1287 def setDbgInfo(self, interpreter, argv, wd, env, excReporting, excList, 1287 .getVirtualenvInterpreter(self.debugProperties["VIRTUALENV"])
1288 else:
1289 return self.debugProperties[key]
1290
1291 def setDbgInfo(self, venvName, argv, wd, env, excReporting, excList,
1288 excIgnoreList, autoClearShell, tracePython=None, 1292 excIgnoreList, autoClearShell, tracePython=None,
1289 autoContinue=None): 1293 autoContinue=None):
1290 """ 1294 """
1291 Public method to set the debugging information. 1295 Public method to set the debugging information.
1292 1296
1293 @param interpreter interpreter to be used (string) 1297 @param venvName name of the virtual environment used
1294 @param argv command line arguments to be used (string) 1298 @type str
1295 @param wd working directory (string) 1299 @param argv command line arguments to be used
1296 @param env environment setting (string) 1300 @type str
1301 @param wd working directory
1302 @type str
1303 @param env environment setting
1304 @type str
1297 @param excReporting flag indicating the highlighting of exceptions 1305 @param excReporting flag indicating the highlighting of exceptions
1298 @param excList list of exceptions to be highlighted (list of strings) 1306 @type bool
1299 @param excIgnoreList list of exceptions to be ignored (list of strings) 1307 @param excList list of exceptions to be highlighted
1308 @type list of str
1309 @param excIgnoreList list of exceptions to be ignored
1310 @type list of str
1300 @param autoClearShell flag indicating, that the interpreter window 1311 @param autoClearShell flag indicating, that the interpreter window
1301 should be cleared (boolean) 1312 should be cleared
1313 @type bool
1302 @keyparam tracePython flag to indicate if the Python library should be 1314 @keyparam tracePython flag to indicate if the Python library should be
1303 traced as well (boolean) 1315 traced as well
1316 @type bool
1304 @keyparam autoContinue flag indicating, that the debugger should not 1317 @keyparam autoContinue flag indicating, that the debugger should not
1305 stop at the first executable line (boolean) 1318 stop at the first executable line
1306 """ 1319 @type bool
1307 self.dbgInterpreter = interpreter 1320 """
1321 self.dbgVirtualEnv = venvName
1308 self.dbgCmdline = argv 1322 self.dbgCmdline = argv
1309 self.dbgWd = wd 1323 self.dbgWd = wd
1310 self.dbgEnv = env 1324 self.dbgEnv = env
1311 self.dbgReportExceptions = excReporting 1325 self.dbgReportExceptions = excReporting
1312 self.dbgExcList = excList[:] # keep a copy of the list 1326 self.dbgExcList = excList[:] # keep a copy of the list

eric ide

mercurial