Module Expr Str Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad Str attr Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Slice body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad NameLoad
N/A N/A 
This script copies the files in one directory to another, expanding any SSI
<!-- #include --> statements it encounters along the way.

Usage:

  ./ssi_expander.py [source_directory] destination_directory

If source_directory is not specified, then the current directory is used.
 N/A os N/A ssi N/A sys process N/A N/A source dest N/A N/A N/A N/A dirpath dirnames filenames N/A N/A os walk source N/A N/A dest_dir N/A N/A N/A os path realpath N/A N/A N/A os path join dest N/A N/A N/A os path relpath dirpath source N/A N/A N/A os mkdir dest_dir N/A filename filenames N/A N/A src_path N/A N/A N/A os path abspath N/A N/A N/A os path join source dirpath filename N/A dest_path N/A N/A N/A os path join dest_dir filename N/A N/A N/A N/A filename endswith .html N/A N/A N/A N/A os symlink src_path dest_path N/A N/A N/A N/A N/A file dest_path w write N/A N/A ssi InlineIncludes src_path N/A dirname N/A dirnames N/A N/A N/A N/A N/A dirname startswith . N/A N/A N/A N/A dirnames remove dirname N/A N/A N/A __name__ __main__ N/A N/A N/A N/A len N/A sys argv 2 N/A N/A source . N/A dest N/A N/A sys argv N/A 1 N/A N/A N/A N/A len N/A sys argv 3 N/A N/A N/A source dest N/A N/A sys argv N/A 1 N/A N/A N/A N/A N/A sys stderr write N/A Usage: %s [source_directory] destination_directory
 N/A N/A sys argv N/A 0 N/A N/A N/A sys exit 1 N/A N/A process source dest