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

Unified Diff: tools/create_editor.py

Issue 13024002: Two bugfixes in tools/create_editor.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months 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_editor.py
diff --git a/tools/create_editor.py b/tools/create_editor.py
index 2613c7fd8f6ae780e45d24b46bb4a383979a8f12..6c9596387cf9127866722b25cd99cdf9ba02fff7 100644
--- a/tools/create_editor.py
+++ b/tools/create_editor.py
@@ -47,11 +47,16 @@ def AntPath():
def ProcessEditorArchive(archive, outDir):
tempDir = join(GetEditorTemp(), 'editor.out')
- os.makedirs(tempDir)
+ try:
+ os.makedirs(tempDir)
+ except OSError:
+ # Directory already exists.
+ pass
if utils.IsWindows():
f = zipfile.ZipFile(archive)
f.extractall(tempDir)
+ f.close()
else:
subprocess.call(['unzip', '-q', archive, '-d', tempDir])
« 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