mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix to use 'change_root()' rather than directly mangling path.
This commit is contained in:
parent
80fa55e71f
commit
101de37907
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ __revision__ = "$Id$"
|
|||
import os
|
||||
from types import StringType
|
||||
from distutils.core import Command
|
||||
from distutils.util import change_root
|
||||
|
||||
class install_data (Command):
|
||||
|
||||
|
@ -46,7 +47,7 @@ class install_data (Command):
|
|||
if not os.path.isabs(dir):
|
||||
dir = os.path.join(self.install_dir, dir)
|
||||
elif self.root:
|
||||
dir = os.path.join(self.root, dir[1:])
|
||||
dir = change_root(self.root, dir)
|
||||
self.mkpath(dir)
|
||||
for data in f[1]:
|
||||
self.copy_file(data, dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue