Mercurial > piecrust2
diff piecrust/commands/builtin/admin.py @ 611:906cc2520773
admin: Use the app directory, not the cwd, in case of `--root`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 04 Feb 2016 08:03:33 -0800 |
parents | effbc78b5528 |
children | 200c7063affa |
line wrap: on
line diff
--- a/piecrust/commands/builtin/admin.py Thu Jan 28 22:17:58 2016 -0800 +++ b/piecrust/commands/builtin/admin.py Thu Feb 04 08:03:33 2016 -0800 @@ -41,7 +41,7 @@ def _runFoodTruck(self, ctx): from foodtruck import settings settings.FOODTRUCK_CMDLINE_MODE = True - settings.FOODTRUCK_ROOT = os.getcwd() + settings.FOODTRUCK_ROOT = ctx.app.root_dir from foodtruck.main import run_foodtruck run_foodtruck(debug=ctx.args.debug)