aboutsummaryrefslogtreecommitdiff
path: root/crosperf/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'crosperf/config.py')
-rw-r--r--crosperf/config.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/crosperf/config.py b/crosperf/config.py
new file mode 100644
index 00000000..45a3d000
--- /dev/null
+++ b/crosperf/config.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Google Inc. All Rights Reserved.
+
+"""A configure file."""
+config = {}
+
+
+def GetConfig(key):
+ try:
+ return config[key]
+ except KeyError:
+ return None
+
+
+def AddConfig(key, value):
+ config[key] = value