瀏覽代碼

fix error on Windows when attempting to remove folders having read-only files

Ashish Kulkarni 11 年之前
父節點
當前提交
1177538b1a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/build.py

+ 2 - 0
scripts/build.py

@@ -419,6 +419,8 @@ def get_output(*cmd):
 
 def rmdir(path):
     if exists(path):
+        if platform.system() == 'Windows':
+            shell('attrib -R %s\* /S' % path)
         shutil.rmtree(path)
 
 def mkdir_p(path):