summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/vs-macros/test_exists.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/win/vs-macros/test_exists.py')
-rw-r--r--deps/gyp/test/win/vs-macros/test_exists.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/gyp/test/win/vs-macros/test_exists.py b/deps/gyp/test/win/vs-macros/test_exists.py
new file mode 100644
index 0000000000..f5c90ad6f2
--- /dev/null
+++ b/deps/gyp/test/win/vs-macros/test_exists.py
@@ -0,0 +1,10 @@
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+if not os.path.exists(sys.argv[1]):
+ raise
+open(sys.argv[2], 'w').close()