parameters: (target, source, env, for_signature)
return_statement: return result
docstring: The generator
docstring_summary: The generator
docstring_tokens: The generator
function: def innosetup_generator(target, source, env, for_signature):
      """The generator"""
  
      def to_define_option(item):
          if item[1]:
              return '"/d%s=%s"' % (item[0], item[1])
          else:
              return '"/d%s"' % item[0]
  
      result = '"%s" %s %s %s "/o%s" "/f%s" %s' % \
          (
              env['ISCC'],
              ' '.join(env['ISCC_FLAGS']),
              ' '.join('"/i%s"' % x for x in env['ISCC_PATH']),
              ' '.join([to_define_option(x)
                        for x in env['ISCC_DEFINES'].items()]),
              os.path.dirname(str(target[0])),
              os.path.splitext(os.path.basename(str(target[0])))[0],
              source[0]
          )
  
      return result
function_tokens: def innosetup_generator ( target , source , env , for_signature ) : def to_define_option ( item ) : if item [ 1 ] : return '"/d%s=%s"' % ( item [ 0 ] , item [ 1 ] ) else : return '"/d%s"' % item [ 0 ] result = '"%s" %s %s %s "/o%s" "/f%s" %s' % ( env [ 'ISCC' ] , ' ' . join ( env [ 'ISCC_FLAGS' ] ) , ' ' . join ( '"/i%s"' % x for x in env [ 'ISCC_PATH' ] ) , ' ' . join ( [ to_define_option ( x ) for x in env [ 'ISCC_DEFINES' ] . items ( ) ] ) , os . path . dirname ( str ( target [ 0 ] ) ) , os . path . splitext ( os . path . basename ( str ( target [ 0 ] ) ) ) [ 0 ] , source [ 0 ] ) return result