forked from CommitAnalyzingService/CAS_CodeRepoAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.py
More file actions
executable file
·27 lines (24 loc) · 730 Bytes
/
script.py
File metadata and controls
executable file
·27 lines (24 loc) · 730 Bytes
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
"""
file: script.py
author: Christoffer Rosen <cbr4830@rit.edu>, Ben Grawi <bjg1568@rit.edu>
date: Jan. 2014
description: base script to call.
"""
from cas_manager import *
from analyzer.analyzer import *
from orm.feedback import * # so that we create the table - used by web
from orm.user import * # so that we create the table - used by web
from orm.glmcoefficients import * # so that we create the table - used by web
if len(sys.argv) > 1:
arg = sys.argv[1]
else:
arg = ''
if arg == "initDb":
# Init the database
logging.info('Initializing the Database...')
Base.metadata.create_all(engine)
logging.info('Done')
else:
logging.info("Starting CAS Manager")
cas_manager = CAS_Manager()
cas_manager.start()