All pastes #623075 Raw Edit

Stuff

public python v1 · immutable
·published 2007-07-17 10:07 UTC
rendered paste body
import distutils.file_utildef link_file_wrapper (copy_file):    def wrapper (*args, **kwargs):        if len (args) >= 6:            args = list (args)            args [5] = "hard"        else:            kwargs ["link"] = "hard"        return copy_file (*args, **kwargs)    return wrapperdistutils.file_util.copy_file = link_file_wrapper (distutils.file_util.copy_file)