| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 3 """gypsh output module | 7 """gypsh output module |
| 4 | 8 |
| 5 gypsh is a GYP shell. It's not really a generator per se. All it does is | 9 gypsh is a GYP shell. It's not really a generator per se. All it does is |
| 6 fire up an interactive Python session with a few local variables set to the | 10 fire up an interactive Python session with a few local variables set to the |
| 7 variables passed to the generator. Like gypd, it's intended as a debugging | 11 variables passed to the generator. Like gypd, it's intended as a debugging |
| 8 aid, to facilitate the exploration of .gyp structures after being processed | 12 aid, to facilitate the exploration of .gyp structures after being processed |
| 9 by the input module. | 13 by the input module. |
| 10 | 14 |
| 11 The expected usage is "gyp -f gypsh -D OS=desired_os". | 15 The expected usage is "gyp -f gypsh -D OS=desired_os". |
| 12 """ | 16 """ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 'data': data, | 48 'data': data, |
| 45 } | 49 } |
| 46 | 50 |
| 47 # Use a banner that looks like the stock Python one and like what | 51 # Use a banner that looks like the stock Python one and like what |
| 48 # code.interact uses by default, but tack on something to indicate what | 52 # code.interact uses by default, but tack on something to indicate what |
| 49 # locals are available, and identify gypsh. | 53 # locals are available, and identify gypsh. |
| 50 banner='Python %s on %s\nlocals.keys() = %s\ngypsh' % \ | 54 banner='Python %s on %s\nlocals.keys() = %s\ngypsh' % \ |
| 51 (sys.version, sys.platform, repr(sorted(locals.keys()))) | 55 (sys.version, sys.platform, repr(sorted(locals.keys()))) |
| 52 | 56 |
| 53 code.interact(banner, local=locals) | 57 code.interact(banner, local=locals) |
| OLD | NEW |