From: Florent Kermarrec Date: Thu, 16 Feb 2017 10:48:22 +0000 (+0100) Subject: build/lattice/diamond: remove use of tools.mkdir_noerror X-Git-Tag: 24jan2021_ls180~1890 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fde6d6d3d4462c9c4fd292239d30454d3e45ce9;p=litex.git build/lattice/diamond: remove use of tools.mkdir_noerror --- diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index 68d1db44..52ff58c1 100644 --- a/litex/build/lattice/diamond.py +++ b/litex/build/lattice/diamond.py @@ -77,7 +77,7 @@ def _run_diamond(build_name, source, ver=None): class LatticeDiamondToolchain: def build(self, platform, fragment, build_dir="build", build_name="top", toolchain_path="/opt/Diamond", run=True, **kwargs): - tools.mkdir_noerror(build_dir) + os.makedirs(build_dir, exist_ok=True) cwd = os.getcwd() os.chdir(build_dir)