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
9b301e7a
Commit
9b301e7a
authored
Jan 17, 2003
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure src exists before creating a symlink
parent
2b59b161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Lib/plat-mac/bundlebuilder.py
Lib/plat-mac/bundlebuilder.py
+2
-0
No files found.
Lib/plat-mac/bundlebuilder.py
View file @
9b301e7a
...
...
@@ -578,6 +578,8 @@ def makedirs(dir):
def
symlink
(
src
,
dst
,
mkdirs
=
0
):
"""Copy a file or a directory."""
if
not
os
.
path
.
exists
(
src
):
raise
IOError
,
"No such file or directory: '%s'"
%
src
if
mkdirs
:
makedirs
(
os
.
path
.
dirname
(
dst
))
os
.
symlink
(
os
.
path
.
abspath
(
src
),
dst
)
...
...
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