config: CacheDir()
authorTimo Savola <tsavola@movial.fi>
Mon, 21 Jul 2008 12:48:35 +0000 (15:48 +0300)
committerTimo Savola <tsavola@movial.fi>
Mon, 21 Jul 2008 12:48:35 +0000 (15:48 +0300)
matrix/config.py

index ecfcf12..384a2ce 100644 (file)
@@ -135,6 +135,9 @@ def clear_flag(name):
 def use_board(name):
        config.board = name
 
+def cache_dir(path):
+       config.cache_dir = path
+
 def sb2_target(name):
        config.sb2_target = name
 
@@ -215,6 +218,7 @@ class Config(object):
 
 actions = dict(
        Board = Board,
+       CacheDir = cache_dir,
        ClearFlag = clear_flag,
        Component = component,
        ConfigDir = config_dir,