diff spp_wrapper.py @ 1:23b22c1692fa draft default tip

Replace simplejson with json.
author hackdna
date Tue, 20 May 2014 10:53:35 -0400
parents b15734276ca3
children
line wrap: on
line diff
--- a/spp_wrapper.py	Thu Oct 17 12:39:45 2013 -0400
+++ b/spp_wrapper.py	Tue May 20 10:53:35 2014 -0400
@@ -5,14 +5,12 @@
 
 import sys, subprocess, tempfile, shutil, glob, os, os.path, gzip
 from galaxy import eggs
-import pkg_resources
-pkg_resources.require( "simplejson" )
-import simplejson
+import json
 
 CHUNK_SIZE = 1024
 
 def main():
-    options = simplejson.load( open( sys.argv[1] ) )
+    options = json.load( open( sys.argv[1] ) )
     output_narrow_peak = sys.argv[2]
     output_region_peak = sys.argv[3]
     output_peakshift_file = sys.argv[4]
@@ -99,4 +97,4 @@
     os.unlink( stderr_name )
     #os.rmdir( tmp_dir )
 
-if __name__ == "__main__": main()
\ No newline at end of file
+if __name__ == "__main__": main()