summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/build/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/build/build.py')
-rwxr-xr-xchrome/common/extensions/docs/build/build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/extensions/docs/build/build.py b/chrome/common/extensions/docs/build/build.py
index bcb690b..84f71d3 100755
--- a/chrome/common/extensions/docs/build/build.py
+++ b/chrome/common/extensions/docs/build/build.py
@@ -9,6 +9,7 @@ import os
import os.path
import shutil
import sys
+import time
from subprocess import Popen, PIPE
from optparse import OptionParser
@@ -165,6 +166,13 @@ def main():
for f in modified_files:
print f;
+ # Hack. Sleep here, otherwise windows doesn't properly close the debug.log
+ # and the os.remove will fail with a "Permission denied".
+ time.sleep(1);
+ debug_log = os.path.normpath(_build_dir + "/" + "debug.log");
+ if (os.path.isfile(debug_log)):
+ os.remove(debug_log)
+
return 0;
if __name__ == '__main__':