Skip to content

Commit 0420b09

Browse files
committed
Added delete_dist command
1 parent 7524ce2 commit 0420b09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,12 @@ def distributions(self, args):
24112411
'{Style.RESET_ALL}'.format(Style=Style, Fore=Fore))
24122412
for line in infos:
24132413
print('\t' + line)
2414+
2415+
def delete_dist(self, args):
2416+
dist = self._dist
2417+
if dist.needs_build:
2418+
info('No dist exists that matches your specifications, exiting without deleting.')
2419+
shutil.rmtree(dist.dist_dir)
24142420

24152421

24162422
if __name__ == "__main__":

0 commit comments

Comments
 (0)