projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ae9383
)
[scannermain] Add - as an alias for stdout
author
Johan Dahlin
<johan@gnome.org>
Wed, 1 Sep 2010 23:53:08 +0000
(20:53 -0300)
committer
Johan Dahlin
<johan@gnome.org>
Wed, 1 Sep 2010 23:55:11 +0000
(20:55 -0300)
giscanner/scannermain.py
patch
|
blob
|
history
diff --git
a/giscanner/scannermain.py
b/giscanner/scannermain.py
index fa9b6213dedb106b1f464d7baaab0ad940e7f1b1..587c661a9ef61bb0f8230204e970f362d7be9c78 100644
(file)
--- 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)