Skip to content

Commit

Permalink
Don't delete _generated modules on ffi_build import
Browse files Browse the repository at this point in the history
Fix #120.
  • Loading branch information
liZe committed Feb 12, 2019
1 parent 60cb2a8 commit 07802d7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cairocffi/ffi_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""

import shutil
import sys
from pathlib import Path

Expand All @@ -21,10 +20,8 @@
import constants # noqa

# Create an empty _generated folder if needed
shutil.rmtree((Path(__file__).parent / '_generated'), ignore_errors=True)
(Path(__file__).parent / '_generated').mkdir(exist_ok=True)


# Primary cffi definitions
ffi = FFI()
ffi.set_source('cairocffi._generated.ffi', None)
Expand Down

0 comments on commit 07802d7

Please sign in to comment.