diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-03-07 09:47:14 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-03-07 09:47:14 +0100 |
commit | 260a5fa322c6910fbc7b046b6f63aef1a636ef92 (patch) | |
tree | 2f050212556afbc7803e7ca8699589af800c113b /lib | |
parent | 1dfb6da4f8f1fec01d82f5f2dcbc66751d4078ec (diff) |
dataref export: include environment variables
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -336,6 +336,9 @@ def model_quality_table( def export_dataref(dref_file, dref, precision=None): with open(dref_file, "w") as f: + for k, v in sorted(os.environ.items(), key=lambda kv: kv[1]): + if k.startswith("DFATOOL_"): + print(f"% {k}='{v}'", file=f) for arg in sys.argv: print(f"% {arg}", file=f) for k, v in sorted(dref.items()): |