| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/python | |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 # This file is (possibly, depending on python version) imported by | |
| 7 # gyp_nacl when GYP_PARALLEL=1 and it creates sub-processes | |
| 8 # through the multiprocessing library. | |
| 9 | |
| 10 # Importing in Python 2.6 (fixed in 2.7) on Windows doesn't search for | |
| 11 # imports that don't end in .py (and aren't directories with an | |
| 12 # __init__.py). This wrapper makes "import gyp_nacl" work with | |
| 13 # those old versions and makes it possible to execute gyp_nacl.py | |
| 14 # directly on Windows where the extension is useful. | |
| 15 | |
| 16 import os | |
| 17 | |
| 18 path = os.path.dirname(os.path.abspath(__file__)) | |
| 19 execfile(os.path.join(path, 'gyp_nacl')) | |
| OLD | NEW |