diff --git a/common.py b/common.py index a8547dde..83836500 100644 --- a/common.py +++ b/common.py @@ -826,7 +826,7 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j # There should never be gen or bin directories in the source, so just get # rid of them... for baddir in ['gen', 'bin']: - badpath = os.path.join(root_dir, 'gen') + badpath = os.path.join(root_dir, baddir) if os.path.exists(badpath): shutil.rmtree(badpath)