diff options
author | Greg Ward <gward@python.net> | 2000-05-25 02:14:26 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-05-25 02:14:26 (GMT) |
commit | 101de379070c3a7700a9f57bd6d24cab55f7848a (patch) | |
tree | 6638df73787ca26f1a31b328a5c1d02b41041d42 /Lib/distutils | |
parent | 80fa55e71fea3ef170792a8cc8fcc6bef10687b7 (diff) | |
download | cpython-101de379070c3a7700a9f57bd6d24cab55f7848a.zip cpython-101de379070c3a7700a9f57bd6d24cab55f7848a.tar.gz cpython-101de379070c3a7700a9f57bd6d24cab55f7848a.tar.bz2 |
Fix to use 'change_root()' rather than directly mangling path.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install_data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 65d188f..acc89aa 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -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) |