diff options
-rw-r--r-- | ppapi/generators/idl_option.py | 2 | ||||
-rw-r--r-- | ppapi/generators/idl_outfile.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ppapi/generators/idl_option.py b/ppapi/generators/idl_option.py index 0f7aa46..9b87d42 100644 --- a/ppapi/generators/idl_option.py +++ b/ppapi/generators/idl_option.py @@ -37,7 +37,7 @@ class Option(object): if self.testfunc: if not self.testfunc(self, value): return False # If this is a boolean option, set it to true - if not self.default: + if self.default is None: self.value = True else: self.value = value diff --git a/ppapi/generators/idl_outfile.py b/ppapi/generators/idl_outfile.py index 76262d7..e25c3ca 100644 --- a/ppapi/generators/idl_outfile.py +++ b/ppapi/generators/idl_outfile.py @@ -29,6 +29,10 @@ class IDLOutFile(object): self.outlist = [] self.open = True + # Return the file name + def Filename(self): + return self.filename + # Append to the output if the file is still open def Write(self, string): if not self.open: |