[Python-checkins] python/dist/src/Lib/distutils msvccompiler.py,1.45,1.46

theller@sourceforge.net theller@sourceforge.net
Thu, 25 Apr 2002 10:29:48 -0700


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv15839

Modified Files:
	msvccompiler.py 
Log Message:
Pass the full pathname to MSVC when compiling a debug version. This
allows the debugger to find the source without asking the user to
browse for it.


Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/msvccompiler.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** msvccompiler.py	8 Feb 2002 14:41:31 -0000	1.45
--- msvccompiler.py	25 Apr 2002 17:29:45 -0000	1.46
***************
*** 310,313 ****
--- 310,319 ----
                  self.mkpath (os.path.dirname (obj))
  
+                 if debug:
+                     # pass the full pathname to MSVC in debug mode,
+                     # this allows the debugger to find the source file
+                     # without asking the user to browse for it
+                     src = os.path.abspath(src)
+ 
                  if ext in self._c_extensions:
                      input_opt = "/Tc" + src