diff options
author | BonfaceKilz | 2022-03-11 12:46:08 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-12 15:33:09 +0300 |
commit | 1e508ead4e4c84d5254eb4ed6b21e70324bfd393 (patch) | |
tree | 65195b939dff3862ef112061cc6e8c742b45388f | |
parent | ca252c115569ffacd62ef0db5ddc2cf5f5e1283e (diff) | |
download | genenetwork3-1e508ead4e4c84d5254eb4ed6b21e70324bfd393.tar.gz |
Compose csv-diff command within single quotes
* gn3/csvcmp.py (csv_diff): Use single quotes. There was a change in 6d39c92
that broke this.
-rw-r--r-- | gn3/csvcmp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/csvcmp.py b/gn3/csvcmp.py index 7b2ae74..ac09cc3 100644 --- a/gn3/csvcmp.py +++ b/gn3/csvcmp.py @@ -67,9 +67,9 @@ def csv_diff(base_csv, delta_csv, tmp_dir="/tmp"): width=_l)) # Now we can run the diff! - _r = run_cmd(cmd=("csvdiff " - f"'{file_name1}' '{file_name2}' " - "--format json")) + _r = run_cmd(cmd=('"csvdiff ' + f'{file_name1} {file_name2} ' + '--format json"')) if _r.get("code") == 0: _r = json.loads(_r.get("output")) if any(_r.values()): |