Added link variables

This commit is contained in:
Mark Qvist 2023-02-15 10:09:25 +01:00
parent c134ee180a
commit 1a84e0c019
3 changed files with 34 additions and 28 deletions

View file

@ -160,7 +160,7 @@ class Node:
if data != None and isinstance(data, dict):
for e in data:
if isinstance(e, str) and e.startswith("field_"):
if isinstance(e, str) and (e.startswith("field_") or e.startswith("var_")):
env_map[e] = data[e]
generated = subprocess.run([file_path], stdout=subprocess.PIPE, env=env_map)