summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-06-11 09:53:35 -0400
committerColin Walters <walters@verbum.org>2009-06-11 09:53:35 -0400
commit31317a9ffa31af959dd51eedfa2f31f586687475 (patch)
tree7bf48ee5b891e74d8a2978d6758b861081a21e3c
parent351cbee1a632060d338c07983bbf1ba4a1008226 (diff)
downloadgobject-introspection-31317a9ffa31af959dd51eedfa2f31f586687475.tar.gz
Don't fail if no --output option is specified
Printing to stdout is legitimate.
-rw-r--r--giscanner/dumper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 8b85ae50..e6a81488 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -91,7 +91,8 @@ class DumpCompiler(object):
# Public API
def run(self):
- print ' GEN ' + self._options.output
+ print ' GEN ' + (self._options.output and
+ self._options.output or '<stdout>')
c_path = self._generate_tempfile('.c')
f = open(c_path, 'w')
f.write(_PROGRAM_TEMPLATE)