forked from androguard/androguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
androgui.py
executable file
·33 lines (24 loc) · 944 Bytes
/
androgui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python2
'''Androguard Gui'''
import argparse
import sys
from androguard.core import androconf
from PySide import QtCore, QtGui
from androguard.gui.mainwindow import MainWindow
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Androguard GUI")
parser.add_argument("-d", "--debug", action="store_true", default=False)
args = parser.parse_args()
if args.debug:
androconf.set_debug()
# We need that to save huge sessions when leaving and avoid
# RuntimeError: maximum recursion depth exceeded while pickling an object
# or
# RuntimeError: maximum recursion depth exceeded in cmp
# http://stackoverflow.com/questions/2134706/hitting-maximum-recursion-depth-using-pythons-pickle-cpickle
sys.setrecursionlimit(50000)
app = QtGui.QApplication(sys.argv)
window = MainWindow()
window.resize(1024, 768)
window.show()
sys.exit(app.exec_())