Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for reading json data from stdin

  • Loading branch information...
commit 4381727492f24f0e59ccc4131a3ee1c1acbcb3fd 1 parent 53be910
@fracai fracai authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 dropship
View
5 dropship
@@ -50,7 +50,10 @@ if __name__ == '__main__':
else:
path = None
- f = open(infile, 'r')
+ if infile == '-':
+ f = sys.stdin
+ else:
+ f = open(infile, 'r')
try:
indata = json.load(f)
except ValueError,e:
Please sign in to comment.
Something went wrong with that request. Please try again.