From 5df72f9631b9844ea833ad79d908519a493e1ac8 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Tue, 12 Jul 2016 23:42:50 +0300 Subject: [PATCH] Fix error when location dir doesn't exist beforehand Introduced in parent commit. --- hererocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hererocks.py b/hererocks.py index dda3a8a..d1e28db 100755 --- a/hererocks.py +++ b/hererocks.py @@ -1798,8 +1798,8 @@ def main(argv=None): identifiers = get_installed_identifiers() - if not os.path.exists(opts.location): - os.makedirs(opts.location) + if not os.path.exists(os.path.join(opts.location, "bin")): + os.makedirs(os.path.join(opts.location, "bin")) write_activation_scripts()