From 699b5ddc9dae3cb2d284e17b8cea34f16acf575e Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Wed, 24 Sep 2014 11:49:38 +0000 Subject: hard-code default directories to /src, so user doesn't have to specify them --- morphlib/app.py | 5 +++-- 1 file 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', -- cgit v1.2.1