diff options
Diffstat (limited to 'pavement.py')
-rw-r--r-- | pavement.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pavement.py b/pavement.py index 6ed9b8689..6c4925acf 100644 --- a/pavement.py +++ b/pavement.py @@ -182,7 +182,9 @@ def ttypes(options): outdir = PROJECT_DIR / "module" / "remote" - (outdir / "gen-py").rmtree() + + if (outdir / "gen-py").exists(): + (outdir / "gen-py").rmtree() cmd = [options.ttypes.path, "-strict", "-o", outdir, "--gen", "py:slots,dynamic", outdir / "pyload.thrift"] |