tomliamlynch / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

class DecompilerDed create tmp id not exists #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In decompiler.py check if /tmp/ dir exists; if not then create it:

class DecompilerDed  :
    def __init__(self, vm, path_dex2jar = "./decompiler/dex2jar/", bin_dex2jar = "dex2jar.sh", path_jad="./decompiler/jad/", bin_jad="jad") :
        self.classes = {}
        self.classes_failed = []

        pathtmp = os.getcwd() + "/tmp/"
        if not os.path.exists(pathtmp): <-- Adding check
            os.makedirs(pathtmp)        <-- Adding dir creation

Original issue reported on code.google.com by liadalex82@gmail.com on 19 Apr 2012 at 3:12

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 25 Apr 2012 at 7:36