Mercurial > hg > nsaunier > traffic-intelligence
diff python/storage.py @ 1015:cf9d29de3dbf
merge With Pr Saunier's code
| author | Wendlasida |
|---|---|
| date | Mon, 04 Jun 2018 11:25:49 -0400 |
| parents | 75601be6019f |
| children | 16932cefabc1 |
line wrap: on
line diff
--- a/python/storage.py Fri Jun 01 17:32:52 2018 -0400 +++ b/python/storage.py Mon Jun 04 11:25:49 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)
