From: Alain Péteut Date: Sun, 16 Jun 2019 12:06:39 +0000 (+0200) Subject: build.plat: dedent overrides. X-Git-Tag: locally_working~158 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04c07715b41e9b0184e4e90cd1b23bfa1cb0327e;p=nmigen.git build.plat: dedent overrides. --- diff --git a/nmigen/build/plat.py b/nmigen/build/plat.py index 368065c..2f198a8 100644 --- a/nmigen/build/plat.py +++ b/nmigen/build/plat.py @@ -236,7 +236,7 @@ class TemplatedPlatform(Platform): # `export VAR=` is treated on Linux. return re.sub(r'^\"\"$', "", os.environ[var_env]) elif var in kwargs: - return kwargs[var] + return textwrap.dedent(kwargs[var]).strip() else: return jinja2.Undefined(name=var)