mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that adds
the compiler objects 'verbose' and 'dry_run' flags.
This commit is contained in:
parent
611850bbb3
commit
013f0c8636
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue