Permalink
Browse files

[BUG #4273] add wrapper script for demjson's helpful 'jsonlint'

  • Loading branch information...
1 parent 787fb5d commit b13d3fc0da919045e02606be12dbb9e72ae792c2 @thron7 thron7 committed Jul 12, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 tool/bin/jsonlint.sh
View
@@ -0,0 +1,9 @@
+#!/bin/bash
+##
+# Just a tiny wrapper around demjson/jsonlint, to extend PYTHONPATH
+##
+
+QXPY="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../pylib && pwd )"
+PYTHONPATH=$QXPY:$PYTHONPATH python $QXPY/demjson/jsonlint -S -v $*
+ # -S non-strict, e.g. allow comments
+ # -v print to stdout (without it's only $?)

0 comments on commit b13d3fc

Please sign in to comment.