view site_scons/site_tools/copyrecurse/CopyRecurseAction.py @ 17:15107282d9eb

Redefined SYSCONFDIR installation path variable so that it appends APPNAME. * Although this deviates from GNU standards this relatively minor change makes it easier to write paths that are portable to Windows.
author M. George Hansen <technopolitica@gmail.com>
date Thu, 09 Jun 2011 21:40:51 -1000
parents 4706e0194af3
children
line wrap: on
line source

from .copytree import copytree

def copyRecurseAction(target, source, env):
    try:
        include_pattern = env['INCLUDE_PATTERN']
    except KeyError:
        include_pattern = '*'
    try:
        exclude_pattern = env['EXCLUDE_PATTERN']
    except KeyError:
        exclude_pattern = '.*'
    copytree(str(source[0]), str(target[0]), include_pattern, exclude_pattern)