-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmainGui.py
50 lines (36 loc) · 1.07 KB
/
mainGui.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Name : mainGui.py
# Version : 0.1
# Author : Abdesslem Amri
# Date : 15-01-2014
# Owner : Abdesslem Amri
# License : GPLv2
# Description : This is the main script used to run the web application
#--------------------------------------------------------------------------
import readline
import sys, os
import peframe
import utils
sys.path.insert(0, 'web')
from controller.controller import *
class main():
def __init__(self):
pass
def static(self,filename):
peframe.autoanalysis(filename)
def dynamic(self,filename):
dynamic.dynamic(filename)
def runApp(self):
run(webapp, host='localhost', port=8080, quiet=True,reloader=True)
#TODO Execute the static and dynamic analysis and Generate the report
def execute(self):
if len(sys.argv) >= 2:
filename = sys.argv[1]
print filename
elif len(sys.argv) == 1 :
print "good"
if __name__ == '__main__':
m=main()
m.runApp()