diff options
| author | Frederick Muriuki Muriithi | 2026-03-11 14:36:38 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-03-11 14:36:38 -0500 |
| commit | 4dcf6eef6e0bc97ec1aac6aad2a1548e5f79c651 (patch) | |
| tree | 06bd0d37f0f1f0ada2a96a091ac4f8f9ef7d01d7 | |
| parent | 39aa801f4772bcc50e4f0a86ae08d2fdf9eb12e9 (diff) | |
| download | gn-uploader-4dcf6eef6e0bc97ec1aac6aad2a1548e5f79c651.tar.gz | |
Set "RUST_BACKTRACE" envvar if loglevel is DEBUG.
| -rw-r--r-- | scripts/run_qtlreaper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/run_qtlreaper.py b/scripts/run_qtlreaper.py index 54e5d45..a0c3b22 100644 --- a/scripts/run_qtlreaper.py +++ b/scripts/run_qtlreaper.py @@ -1,4 +1,5 @@ """Script to run rust-qtlreaper and update database with results.""" +import os import sys import csv import time @@ -152,7 +153,10 @@ def dispatch(args: Namespace) -> int: "--n_permutations", "1000", "--geno", _genofile, "--traits", _traitsfile, - "--main_output", _qtlreaper_main_output)) as _qtlreaper: + "--main_output", _qtlreaper_main_output), + env=({**os.environ, "RUST_BACKTRACE": "full"} + if logger.getEffectiveLevel() == logging.DEBUG + else dict(os.environ))) as _qtlreaper: while _qtlreaper.poll() is None: logger.debug("QTLReaper process running…") time.sleep(1) |
