From a13237e7ced0c0471cdd2dd40751fb038f5d8de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Cend=C3=B3n?= Date: Wed, 10 May 2017 15:19:37 -0300 Subject: [PATCH] when download tools zip, if the directory not exists, the script create it --- apk2java.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apk2java.py b/apk2java.py index 00b0cb6..5b40eaa 100755 --- a/apk2java.py +++ b/apk2java.py @@ -21,6 +21,8 @@ def check_home(path): return os.path.isdir(path+"/tool") def getunzipped(theurl, thedir, report): + if not os.path.exists(thedir): + os.mkdir(thedir) print ("Downloading external tool... -> "+thedir+"/tool/") name = os.path.join(thedir, 'temp.zip') try: