Commit f7415c67 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix -allboards in the command line

os.putenv does not work, use os.environ instead
parent 86cc1b26
Pipeline #2527 passed with stage
in 3 minutes and 5 seconds
......@@ -491,7 +491,7 @@ def main() -> None:
sys.argv.remove("-allboards") # pragma: no cover
extraFlags = os.getenv("ASN1SCC_FLAGS") or "" # pragma: no cover
extraFlags += " --target allboards " # pragma: no cover
os.putenv("ASN1SCC_FLAGS", extraFlags) # pragma: no cover
os.environ["ASN1SCC_FLAGS"] = extraFlags # pragma: no cover
if "-profile" in sys.argv:
sys.argv.remove("-profile")
......
......@@ -91,7 +91,7 @@ def main() -> None:
sys.argv.remove("-allboards") # pragma: no cover
extraFlags = os.getenv("ASN1SCC_FLAGS") or "" # pragma: no cover
extraFlags += " --target allboards " # pragma: no cover
os.putenv("ASN1SCC_FLAGS", extraFlags) # pragma: no cover
os.environ["ASN1SCC_FLAGS"] = extraFlags # pragma: no cover
if "-v" in sys.argv:
import pkg_resources # pragma: no cover
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment