| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import imp | 6 import imp |
| 7 import os | 7 import os |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 THIS_PATH = os.path.dirname(os.path.abspath(__file__)) | 10 THIS_PATH = os.path.dirname(os.path.abspath(__file__)) |
| 11 node_py = imp.load_source('node', os.path.join(THIS_PATH, 'node.py')) | 11 node_py = imp.load_source('node', os.path.join(THIS_PATH, 'node.py')) |
| 12 | 12 |
| 13 if __name__ == '__main__': | 13 if __name__ == '__main__': |
| 14 sys.exit(node_py.main('npm')) | 14 sys.exit(node_py.main('npm')) |
| OLD | NEW |