summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2014-09-24 11:49:38 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-09-24 11:49:38 +0000
commit699b5ddc9dae3cb2d284e17b8cea34f16acf575e (patch)
treed861ff3e068120c5645e2d6c6f8d1932042a1e93
parentc754d0366d4557910775bfa83c85ffdf98af0610 (diff)
downloadmorph-baserock/ps/hardcode-default-dirs.tar.gz
hard-code default directories to /src, so user doesn't have to specify thembaserock/ps/hardcode-default-dirs
-rw-r--r--morphlib/app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index 9ab102b3..550b0276 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -47,7 +47,8 @@ defaults = {
'git://github.com/%s#'
'ssh://git@github.com/%s'),
],
- 'cachedir': os.path.expanduser('~/.cache/morph'),
+ 'cachedir': '/src/cache',
+ 'tempdir': '/src/tmp',
'max-jobs': morphlib.util.make_concurrency()
}
@@ -150,7 +151,7 @@ class Morph(cliapp.Application):
'this setting can point at a directory in '
'NFS)',
metavar='DIR',
- default=None,
+ default=defaults['tempdir'],
group=group_storage)
self.settings.string(['cachedir'],
'cache git repositories and build results in DIR',