Path slash issue for Windows Python builds ?

Neil Piercy <[email protected]>
Newsgroups gmane.network.ethereal.devel
Organization ip.access
Message-ID <[email protected]>
I've only just moved on to building the trunk head (under Windows MSVC6 
with Python 2.4), and found that the builds failing all the new 
Makefile.nmake which have paths to new tools py scripts - e.g. in the 
plugins:

!IFDEF PYTHON
      @echo Making plugin.c (using python)
      @$(PYTHON) ../../tools/make-dissector-reg.py . plugin $(DISSECTOR_SRC)
!ELSE
      @echo Making plugin.c (using sh)
      @$(SH) ../../tools/make-dissector-reg . plugin $(DISSECTOR_SRC)
!ENDIF
   	
Whilst the latter works OK under cygwin python, the former doesnt with 
Windows native Python - I've moved to 2.4, but I guess the issue is 
there with 2.3 too - or am I mistaken on that ?

Changing the line to the below with Windows backslashes fixes this:-

      @$(PYTHON) ..\..\tools\make-dissector-reg.py . plugin $(DISSECTOR_SRC)

These have been introduced all over the place - about 80 places if I've 
got my script right! I've scripted changing them over, so if someone can 
confirm I'm not making a silly error, I'll happily submit a patch.

Regards,
Neil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.