update outputpath
This commit is contained in:
parent
b7b34c1b8e
commit
69fa37aa95
|
@ -3,7 +3,11 @@
|
|||
import re
|
||||
import sys, getopt
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
PATH = lambda p: os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__), p)
|
||||
)
|
||||
|
||||
def getUUID(text):
|
||||
uuid = re.findall('<(.*)>', text)[0].upper()
|
||||
|
@ -24,8 +28,11 @@ def analyzeCrashLog(inputfile, outputfile):
|
|||
|
||||
path = "'" + path + "'"
|
||||
print(path)
|
||||
analysisPath = PATH("../iOSCrashAnalysis/")
|
||||
outname = os.path.splitext(inputfile)[0]
|
||||
|
||||
ttt = subprocess.getoutput(
|
||||
'/Users/zhulixin/Desktop/CrashAnalysis/symbolicatecrash ' + inputfile + ' -d ' + path + ' -o XiaoYing-IOS-Crash.crash')
|
||||
analysisPath + '/symbolicatecrash ' + inputfile + ' -d ' + path + ' -o ' + outname + '.crash')
|
||||
print(ttt)
|
||||
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ class FileFilt:
|
|||
self.fileList.append(newDir)
|
||||
self.counter += 1
|
||||
|
||||
def DelFolder(self, delDir):
|
||||
delList = os.listdir(delDir)
|
||||
for f in delList:
|
||||
filePath = os.path.join(delDir, f)
|
||||
if os.path.isfile(filePath):
|
||||
os.remove(filePath)
|
||||
print(filePath + " was removed!")
|
||||
elif os.path.isdir(filePath):
|
||||
shutil.rmtree(filePath, True)
|
||||
print("Directory: " + filePath + " was removed!")
|
||||
|
||||
if __name__ == "__main__":
|
||||
pass
|
||||
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue