forked from SeattleTestbed/repy_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repy_constants.py
50 lines (40 loc) · 1.88 KB
/
repy_constants.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
49
# File Holds Constant values for Repy
#
#
# Holds the path to a python installation
#PATH_PYTHON_INSTALL = "\\Storage Card\\Program Files\\Python25\\python.exe"
#PATH_PYTHON_INSTALL = "\\Program Files\\Python25\\python.exe"
PATH_PYTHON_INSTALL = "C:\\Python26\\python.exe"
# Default Python Flags
# e.g. The "/new" flag is necessary for PythonCE to allow multiple instances
# The /nopcceshell disables the PythonCE window from opening and annoying the user
#PYTHON_DEFAULT_FLAGS = "/new /nopcceshell "
PYTHON_DEFAULT_FLAGS = ""
# Repy Installation path
#PATH_SEATTLE_INSTALL = "\\Storage Card\\Program Files\\Python25\\Lib\\SEATTLE\\"
#PATH_SEATTLE_INSTALL = "\\seattle\\"
PATH_SEATTLE_INSTALL = "Z:\\Projects\\seattle\\trunk\\repy\\"
# Current Working directory
REPY_CURRENT_DIR = "."
# Stores the directory repy started in
REPY_START_DIR = "."
# Polling Frequency for different Platforms, This is for non-CPU resources
# Poll non-cpu resources less often to reduce overhead
# Memory may need to be tighted, since it is possible to debilitate a system in less time than this.
RESOURCE_POLLING_FREQ_LINUX = .5 # Linux
RESOURCE_POLLING_FREQ_WIN = .5 # Windows
RESOURCE_POLLING_FREQ_WINCE = 4 # Mobile devices are pretty slow
# CPU Polling Frequency for different Platforms
CPU_POLLING_FREQ_LINUX = .1 # Linux
CPU_POLLING_FREQ_WIN = .1 # Windows
CPU_POLLING_FREQ_WINCE = .5 # Mobile devices are pretty slow
#Disk Polling Frequency:
DISK_POLLING_HDD = 3
# These IP addresses are used to resolve our external IP address
# We attempt to connect to these IP addresses, and then check our local IP
# These addresses were choosen since they have been historically very stable
# They are from public universities
STABLE_PUBLIC_IPS = ["18.7.22.69", # M.I.T
"171.67.216.8", # Stanford
"169.229.131.81", # Berkley
"140.142.12.202"] # Univ. of Washington