[gobject-introspection] [scannermain] Add - as an alias for stdout
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [scannermain] Add - as an alias for stdout
- Date: Wed, 1 Sep 2010 23:56:38 +0000 (UTC)
commit ef09647a7e634d91ff6f7f0fd046a8964c26598c
Author: Johan Dahlin <johan gnome org>
Date: Wed Sep 1 20:53:08 2010 -0300
[scannermain] Add - as an alias for stdout
giscanner/scannermain.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index fa9b621..587c661 100644
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -356,7 +356,7 @@ def scanner_main(args):
writer = Writer(transformer.namespace, shlibs, transformer.get_includes(),
exported_packages, options.c_includes)
data = writer.get_xml()
- if options.output:
+ if options.output and options.output != "-":
tempdir = os.path.dirname(options.output) or os.getcwd()
main_f = tempfile.NamedTemporaryFile(suffix='.gir', dir=tempdir, delete=False)
main_f.write(data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]