Merge pull request #112 from craftyguy/fix_init_relpath

Support relative path for initializing config
This commit is contained in:
Oliver Smith 2017-06-25 19:00:42 +00:00 committed by GitHub
commit c3011c953a
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ def init(args):
# Work folder
logging.info("Location of the 'work' path. Multiple chroots (native,"
" device arch, device rootfs) will be created in there.")
cfg["pmbootstrap"]["work"] = pmb.helpers.cli.ask(args, "Work path",
None, args.work, False)
cfg["pmbootstrap"]["work"] = os.path.expanduser(pmb.helpers.cli.ask(args, "Work path",
None, args.work, False))
os.makedirs(cfg["pmbootstrap"]["work"], 0o700, True)
# Parallel job count