bvanapriya / androguard

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

decompiler.py missing tmp creation #35

Closed GoogleCodeExporter closed 9 years ago

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

class DecompilerDex2Jad :
    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 17 Apr 2012 at 2:49

GoogleCodeExporter commented 9 years ago

Original comment by anthony....@gmail.com on 18 Apr 2012 at 12:59