diff python/storage.py @ 1004:75601be6019f

work on process
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sun, 03 Jun 2018 00:21:18 -0400
parents 75af46516b2b
children 16932cefabc1
line wrap: on
line diff
--- a/python/storage.py	Fri Jun 01 17:19:31 2018 -0400
+++ b/python/storage.py	Sun Jun 03 00:21:18 2018 -0400
@@ -966,9 +966,9 @@
               "DELETE FROM curvilinear_positions WHERE trajectory_id IS NULL OR trajectory_id = \"NO\";\n")
     out.close()
     # system call
-    from subprocess import check_call
+    from subprocess import run
     out = openCheck("err.log", "w")
-    check_call("sqlite3 "+utils.removeExtension(filename)+".sqlite < "+sqlScriptFilename, stderr = out, shell = True)
+    run("sqlite3 "+utils.removeExtension(filename)+".sqlite < "+sqlScriptFilename, stderr = out)
     out.close()
     shutil.os.remove(sqlScriptFilename)