Browse Source

[trac905] corrected prefix of .cc file when -o is specified.

JINMEI Tatuya 14 years ago
parent
commit
ee53746391
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/util/python/mkpywrapper.py.in

+ 1 - 1
src/lib/util/python/mkpywrapper.py.in

@@ -70,7 +70,7 @@ def dump_wrappers(class_name, output, module):
         if output == "-":
             impl_file = sys.stdout
         else:
-            impl_file = open(class_name.lower() + "_python.cc", "w")
+            impl_file = open(output + "_python.cc", "w")
         impl_template_file = open("wrapper_template.cc", "r")
     except:
         sys.stderr.write('Failed to open C++ file(s)\n')