<s> import sys <EOL> import os <EOL> import IECore <EOL> import Gaffer <EOL> class license ( Gaffer . Application ) : <EOL> def __init__ ( self ) : <EOL> Gaffer . Application . __init__ ( self ) <EOL> self . parameters ( ) . addParameter ( <EOL> IECore . BoolParameter ( <EOL> name = "<STR_LIT>" , <EOL> description = "<STR_LIT>" , <EOL> defaultValue = True <EOL> ) <EOL> ) <EOL> def _run ( self , args ) : <EOL> sys . stderr . write ( Gaffer . About . name ( ) + "<STR_LIT:U+0020>" + Gaffer . About . versionString ( ) + "<STR_LIT:\n>" ) <EOL> sys . stderr . write ( Gaffer . About . copyright ( ) + "<STR_LIT:\n>" ) <EOL> sys . stderr . write ( Gaffer . About . url ( ) + "<STR_LIT:\n>" ) <EOL> if args [ "<STR_LIT>" ] . value : <EOL> sys . stderr . write ( "<STR_LIT:\n>" + Gaffer . About . dependenciesPreamble ( ) + "<STR_LIT:\n>" ) <EOL> for d in Gaffer . About . dependencies ( ) : <EOL> sys . stderr . write ( "<STR_LIT:\n>" + d [ "<STR_LIT:name>" ] + "<STR_LIT:\n>" ) <EOL> sys . stderr . write ( "<STR_LIT:->" * len ( d [ "<STR_LIT:name>" ] ) + "<STR_LIT>" ) <EOL> if "<STR_LIT>" in d : <EOL> sys . stderr . write ( d [ "<STR_LIT>" ] + "<STR_LIT:\n>" ) <EOL> if "<STR_LIT:url>" in d : <EOL> sys . stderr . write ( "<STR_LIT>" + d [ "<STR_LIT:url>" ] + "<STR_LIT:\n>" ) <EOL> if "<STR_LIT>" in d : <EOL> sys . stderr . write ( "<STR_LIT>" % os . path . expandvars ( d [ "<STR_LIT>" ] ) ) <EOL> if "<STR_LIT:source>" in d : <EOL> sys . stderr . write ( "<STR_LIT>" % os . path . expandvars ( d [ "<STR_LIT:source>" ] ) ) <EOL> return <NUM_LIT:0> <EOL> IECore . registerRunTimeTyped ( license ) </s>
