Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that adds

the compiler objects 'verbose' and 'dry_run' flags.
This commit is contained in:
Greg Ward 2000-03-01 14:43:12 +00:00
parent 611850bbb3
commit 013f0c8636

View file

@ -12,7 +12,7 @@ from types import *
from copy import copy
from distutils.errors import *
from distutils.spawn import spawn
from distutils.util import move_file
from distutils.util import move_file, mkpath
class CCompiler:
@ -453,6 +453,9 @@ class CCompiler:
def move_file (self, src, dst):
return move_file (src, dst, verbose=self.verbose, dry_run=self.dry_run)
def mkpath (self, name, mode=0777):
mkpath (name, mode, self.verbose, self.dry_run)
# class CCompiler