From: Cheng Zhao Date: Fri, 3 Jul 2015 05:59:02 +0000 (+0800) Subject: Ignore Windows errors in clean.py X-Git-Tag: v0.29.0~1^2~12 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e95ee4775e2063602b05927e2f8ca28d7fc4b8ba;p=electron.git Ignore Windows errors in clean.py --- diff --git a/script/clean.py b/script/clean.py index cd72230a..094f70df 100755 --- a/script/clean.py +++ b/script/clean.py @@ -11,11 +11,14 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) def main(): os.chdir(SOURCE_ROOT) - rm_rf('node_modules') - rm_rf('dist') - rm_rf('out') - rm_rf('spec/node_modules') - rm_rf('vendor/brightray/vendor/download/libchromiumcontent') + try: + rm_rf('node_modules') + rm_rf('dist') + rm_rf('out') + rm_rf('spec/node_modules') + rm_rf('vendor/brightray/vendor/download/libchromiumcontent') + except WindowsError: # pylint: disable=E0602 + pass if __name__ == '__main__':