about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui2025-01-07 20:44:49 +0300
committerAlexander_Kabui2025-01-07 20:44:49 +0300
commit688d6a48e73bb87437abdc9fc014fb305fe945d5 (patch)
tree969413982f56f6ef7920205a011561ab5ee1c346
parent95f7d112a4e4ec99aa3641876186bc7a906dad2e (diff)
downloadgenenetwork3-688d6a48e73bb87437abdc9fc014fb305fe945d5.tar.gz
feat: remove shell True to for debug.
-rw-r--r--gn3/api/rqtl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/api/rqtl.py b/gn3/api/rqtl.py
index 1139d9e..b3f71f7 100644
--- a/gn3/api/rqtl.py
+++ b/gn3/api/rqtl.py
@@ -87,8 +87,10 @@ def run_process(rscript_cmd, output_file, run_id):
     """Main function to do the streaming"""
     # TODO: move this function to own file
     # pylint: disable=consider-using-with
+    # added this inorder not to set shell=True
+    rscript_cmd = rscript_cmd.split()
     process = subprocess.Popen(
-        rscript_cmd, shell=True,
+        rscript_cmd,
         stdout=subprocess.PIPE,
         stderr=subprocess.STDOUT
     )