Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Side by Side Diff: trunk/pylib/gyp/generator/gypsh.py

Issue 306051: Add AUTHORS and LICENSE files, and copyright headers to relevant source files... (Closed) Base URL: http://gyp.googlecode.com/svn/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698