Commit 013f0c86 authored by Greg Ward's avatar Greg Ward

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

the compiler objects 'verbose' and 'dry_run' flags.
parent 611850bb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment