summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-01 14:43:12 (GMT)
committerGreg Ward <gward@python.net>2000-03-01 14:43:12 (GMT)
commit013f0c86368b6bfc8227a9cae6811ede3542be22 (patch)
tree5eead752d9b8b8ac645a5ef10f9e0bad45945f8a /Lib
parent611850bbb3adf2f9124f25a29ad9150ee69e62f8 (diff)
downloadcpython-013f0c86368b6bfc8227a9cae6811ede3542be22.zip
cpython-013f0c86368b6bfc8227a9cae6811ede3542be22.tar.gz
cpython-013f0c86368b6bfc8227a9cae6811ede3542be22.tar.bz2
Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that adds
the compiler objects 'verbose' and 'dry_run' flags.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/ccompiler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 7d2d9f5..72b7757 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -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