-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobal_vars.py
More file actions
42 lines (34 loc) · 897 Bytes
/
global_vars.py
File metadata and controls
42 lines (34 loc) · 897 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import xml.etree.ElementTree as ET
"""
Global config variables
"""
GIT_CLONE_LOCATION = "gitClones"
APK_DOWNLOAD_DIR = "apk"
TMP_OUTPUT_DIR = "output"
TOOLS_LOCATION = "../../tools"
DB_LOCATION = "../db.sqlite3"
SONAR_HOST = "http://vm-009.casci.rit.edu:9000"
F_Droid_Metadata_Repo = "fdroiddata"
F_Droid_XML_Location = "./Example_Data.xml"
is_dev = True
app_packages = set()
tree = ET.parse(F_Droid_XML_Location)
root = tree.getroot()
def runner():
import sys
import time
for i in range(0, 70):
sys.stdout.flush()
counter = 0
while(counter < i):
sys.stdout.write('')
counter += 1
sys.stdout.write("#")
time.sleep(10)
def print_processing(count, total):
import sys
sys.stdout.flush()
sys.stdout.write('Processing %d / %d\r' % (count, total))
def clear_stdout():
import sys
sys.stdout.write('')