| 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])
|
|
|
|
|