X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=WrapSwig.py;h=b0fa95ddcd361a4ae88d8d87fcf84fdcf42cfdef;hb=d71e2e62b38383d9b960760f6d81c4d545d59fba;hp=f8e02f9ad9df893052011d0f260f4c6fd00e372d;hpb=73dbefbe532057ce77d9f338a4dc093cdce89898;p=gdcm.git diff --git a/WrapSwig.py b/WrapSwig.py index f8e02f9a..b0fa95dd 100644 --- a/WrapSwig.py +++ b/WrapSwig.py @@ -66,7 +66,8 @@ class SwigWrapper(Wrapper): if extWrap.swig_cpp: # Generate the full pathname of the shadow classes file import string - swig_shadow=string.split(os.path.basename(source),".")[0] +# swig_shadow=string.split(os.path.basename(source),".")[0] + swig_shadow=os.path.splitext(source)[0] swig_shadow=swig_shadow + '.py' # On win32 swig places the shadow classes in the directory # where it was invoked. This is to be opposed to posix where @@ -78,7 +79,8 @@ class SwigWrapper(Wrapper): infile=swig_shadow if os.path.isfile(infile): outfile=[distutil.build_lib,distutil.distribution.get_name()] - outfile.append(swig_shadow) +# outfile.append(swig_shadow) + outfile.append(os.path.basename(swig_shadow)) outfile=apply(os.path.join,outfile) distutil.copy_file(infile,outfile,preserve_mode=0) else: