Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3358)

Unified Diff: dart/tools/make_links.py

Issue 11416281: Ensure the packages directory exists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/make_links.py
diff --git a/dart/tools/make_links.py b/dart/tools/make_links.py
index 3f54004531a43bc8f4348ca5ef44b1c3ca62c63d..e47d02f4aed1d43c34b426347e513c22a134a9a3 100644
--- a/dart/tools/make_links.py
+++ b/dart/tools/make_links.py
@@ -50,12 +50,14 @@ def make_link(source, target):
def main(argv):
target = os.path.relpath(argv[1])
+ if not os.path.exists(target):
+ os.makedirs(target)
for source in argv[2:]:
- # Assume the source directory is named ".../TARGET_NAME/lib".
+ # Assume the source directory is named ".../NAME/lib".
(name, lib) = os.path.split(source)
if lib != 'lib':
name = source
- # Remove any addtional path components preceding TARGET_NAME.
+ # Remove any addtional path components preceding NAME.
(path, name) = os.path.split(name)
if utils.GuessOS() == 'win32':
source = os.path.relpath(source)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698