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

Unified Diff: tools/create_sdk.py

Issue 8820017: The last change to create_sdk.py failed if the 'sdk' dir already existed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index f96b03fba45b177be5b5294ceefdb9429a2f2621..5ce2735a4c51d4ff243ffeb3f9e1b8e637ce7d7c 100644
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -81,8 +81,9 @@ def Main(argv):
if (os.path.basename(os.path.dirname(SDK)) !=
utils.GetBuildConf('release', 'ia32')):
print "SDK is not built in Debug mode."
- # leave empty dir behind
- os.makedirs(SDK)
+ if not os.path.exists(SDK):
+ # leave empty dir behind
+ os.makedirs(SDK)
exit(0)
if exists(SDK):
« 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