-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunScripts.py
34 lines (28 loc) · 1.02 KB
/
RunScripts.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
import datetime
import json
import os
import sys
import time
import pymysql
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import Utility.RepoConfig as Repo
import Utility.DBConfig as DB
repo = Repo.createRepo()
db = DB.createDB(repo)
print("\nExtract no_distinct_action ...")
cmd = 'python NoDistinctAction.py {} {} {} {} {}'.format(repo.name, db.host, db.port, db.user, db.pwd)
print('cmd: ', cmd)
os.system(cmd)
print("\nExtract developer_activeness ...")
cmd = 'python Activeness.py {} {} {} {} {}'.format(repo.name, db.host, db.port, db.user, db.pwd)
print('cmd: ', cmd)
os.system(cmd)
print("\nExtract most_prefer_type ...")
cmd = 'python MostPreTypeDev.py {} {} {} {} {}'.format(repo.name, db.host, db.port, db.user, db.pwd)
print('cmd: ', cmd)
os.system(cmd)
print("\nExtract seq_action ...")
cmd = 'python SeqActionIssueType.py {} {} {} {} {}'.format(repo.name, db.host, db.port, db.user, db.pwd)
print('cmd: ', cmd)
os.system(cmd)
print("\nFINISH")