wxPython/wxGlade-0.9.1/codegen/__init__.py
def check_values(self):
        "Check the validity of the set application values. Raises exceptions for errors; see module errors"
        # XXX implement without exceptions
        # Check if the values of use_multiple_files and out_path agree
        if self.multiple_files:
            if not os.path.isdir(self.out_dir):
                raise errors.WxgOutputDirectoryNotExist(self.out_dir)
            if not os.access(self.out_dir, os.W_OK):
                raise errors.WxgOutputDirectoryNotWritable(self.out_dir)
        else:
            if os.path.isdir(self.out_dir):
                raise errors.WxgOutputPathIsDirectory(self.out_dir)
            directory = os.path.dirname(self.out_dir)
            if directory:
                if not os.path.isdir(directory):
                    raise errors.WxgOutputDirectoryNotExist(directory)
                if not os.access(directory, os.W_OK):
                    raise errors.WxgOutputDirectoryNotWritable(directory)

        # It's not possible to generate code from a template directly
        if self.is_template:
            raise errors.WxgTemplateCodegenNotPossible
Check the validity of the set application values. Raises exceptions for errors; see module errors
Check the validity of the set application values. Raises exceptions for errors; see module errors
Check the validity of the set application values . Raises exceptions for errors ; see module errors
def check_values(self):
        if self.multiple_files:
            if not os.path.isdir(self.out_dir):
                raise errors.WxgOutputDirectoryNotExist(self.out_dir)
            if not os.access(self.out_dir, os.W_OK):
                raise errors.WxgOutputDirectoryNotWritable(self.out_dir)
        else:
            if os.path.isdir(self.out_dir):
                raise errors.WxgOutputPathIsDirectory(self.out_dir)
            directory = os.path.dirname(self.out_dir)
            if directory:
                if not os.path.isdir(directory):
                    raise errors.WxgOutputDirectoryNotExist(directory)
                if not os.access(directory, os.W_OK):
                    raise errors.WxgOutputDirectoryNotWritable(directory)
        if self.is_template:
            raise errors.WxgTemplateCodegenNotPossible
def check_values ( self ) : if self . multiple_files : if not os . path . isdir ( self . out_dir ) : raise errors . WxgOutputDirectoryNotExist ( self . out_dir ) if not os . access ( self . out_dir , os . W_OK ) : raise errors . WxgOutputDirectoryNotWritable ( self . out_dir ) else : if os . path . isdir ( self . out_dir ) : raise errors . WxgOutputPathIsDirectory ( self . out_dir ) directory = os . path . dirname ( self . out_dir ) if directory : if not os . path . isdir ( directory ) : raise errors . WxgOutputDirectoryNotExist ( directory ) if not os . access ( directory , os . W_OK ) : raise errors . WxgOutputDirectoryNotWritable ( directory ) if self . is_template : raise errors . WxgTemplateCodegenNotPossible
Check the validity of the set application values.
Check the validity of the set application values .
"Check the validity of the set application values. Raises exceptions for errors; see module errors" # XXX implement without exceptions # Check if the values of use_multiple_files and out_path agree # It's not possible to generate code from a template directly
self