[Pydev-cvs] org.python.pydev.debug/pysrc pydevd.py,1.98,1.99
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-09-27 19:59:45
|
Update of /cvsroot/pydev/org.python.pydev.debug/pysrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20604/pysrc Modified Files: pydevd.py Log Message: Synching to latest changes: Pydev <ul> <li><strong>Editor</strong>: Cursor settings no longer overridden</li> <li><strong>Code-completion</strong>: If __all__ is defined with runtime elements (and not only in a single assign statement), it's ignored for code-completion purposes</li> <li><strong>Debugger</strong>: Pythonpath the same in debug and regular modes (sys.path[0] is the same directory as the file run)</li> <li><strong>Debugger</strong>: Persist choices done in the debugger when files from the debugger are not found</li> <li><strong>Interpreter config</strong>: "email" automatically added to the "forced builtins"</li> <li><strong>Parser</strong>: Correctly recognizing absolute import with 3 or more levels</li> <li><strong>Syntax check</strong>: Option to do only on active editor</li> </ul> Also: tabs changed for spaces Index: pydevd.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/pysrc/pydevd.py,v retrieving revision 1.98 retrieving revision 1.99 diff -C2 -d -r1.98 -r1.99 *** pydevd.py 17 Aug 2008 00:26:56 -0000 1.98 --- pydevd.py 27 Sep 2008 19:59:12 -0000 1.99 *************** *** 674,678 **** #now, the local directory has to be added to the pythonpath ! sys.path.insert(0, os.getcwd()) # for completness, we'll register the pydevd.reader & pydevd.writer threads net = NetCommand(str(CMD_THREAD_CREATE), 0, '<xml><thread name="pydevd.reader" id="-1"/></xml>') --- 674,682 ---- #now, the local directory has to be added to the pythonpath ! #sys.path.insert(0, os.getcwd()) ! #Changed: it's not the local directory, but the directory of the file launched ! #The file being run ust be in the pythonpath (even if it was not before) ! sys.path.insert(0, os.path.split(file)[0]) ! # for completness, we'll register the pydevd.reader & pydevd.writer threads net = NetCommand(str(CMD_THREAD_CREATE), 0, '<xml><thread name="pydevd.reader" id="-1"/></xml>') |