Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a4438d8
Commit
1a4438d8
authored
Jan 28, 2001
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data pathnames were not converted from URL-style to local style. Fixed.
parent
d93da349
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/distutils/command/install_data.py
Lib/distutils/command/install_data.py
+4
-2
No files found.
Lib/distutils/command/install_data.py
View file @
1a4438d8
...
...
@@ -10,7 +10,7 @@ __revision__ = "$Id$"
import
os
from
types
import
StringType
from
distutils.core
import
Command
from
distutils.util
import
change_root
from
distutils.util
import
change_root
,
convert_path
class
install_data
(
Command
):
...
...
@@ -48,6 +48,7 @@ class install_data (Command):
for
f
in
self
.
data_files
:
if
type
(
f
)
==
StringType
:
# it's a simple file, so copy it
f
=
convert_path
(
f
)
if
self
.
warn_dir
:
self
.
warn
(
"setup script did not provide a directory for "
"'%s' -- installing right in '%s'"
%
...
...
@@ -56,13 +57,14 @@ class install_data (Command):
self
.
outfiles
.
append
(
out
)
else
:
# it's a tuple with path to install to and a list of files
dir
=
f
[
0
]
dir
=
convert_path
(
f
[
0
])
if
not
os
.
path
.
isabs
(
dir
):
dir
=
os
.
path
.
join
(
self
.
install_dir
,
dir
)
elif
self
.
root
:
dir
=
change_root
(
self
.
root
,
dir
)
self
.
mkpath
(
dir
)
for
data
in
f
[
1
]:
data
=
convert_path
(
f
[
1
])
(
out
,
_
)
=
self
.
copy_file
(
data
,
dir
)
self
.
outfiles
.
append
(
out
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment