String methods migration for build scripts. (Patch from KA)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
import sys, os, string
|
||||
import sys, os
|
||||
|
||||
from distutils.msvccompiler import MSVCCompiler
|
||||
from distutils.bcppcompiler import BCPPCompiler
|
||||
@@ -465,8 +465,8 @@ def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps=
|
||||
|
||||
if force or newer(i_file, py_file) or newer(i_file, cpp_file):
|
||||
# we need forward slashes here even on win32
|
||||
cpp_file = string.join(string.split(cpp_file, '\\'), '/')
|
||||
i_file = string.join(string.split(i_file, '\\'), '/')
|
||||
cpp_file = '/'.join(cpp_file.split('\\'))
|
||||
i_file = '/'.join(i_file.split('\\'))
|
||||
|
||||
cmd = ['./wxSWIG/wxswig'] + swig_args + ['-I'+dir, '-c', '-o', cpp_file, i_file]
|
||||
spawn(cmd, verbose=1)
|
||||
|
Reference in New Issue
Block a user