[gobject-introspection] Don't fail if no --output option is specified
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Subject: [gobject-introspection] Don't fail if no --output option is specified
- Date: Thu, 11 Jun 2009 09:53:12 -0400 (EDT)
commit 31317a9ffa31af959dd51eedfa2f31f586687475
Author: Colin Walters <walters verbum org>
Date: Thu Jun 11 09:53:35 2009 -0400
Don't fail if no --output option is specified
Printing to stdout is legitimate.
---
giscanner/dumper.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 8b85ae5..e6a8148 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]