Fix error when location dir doesn't exist beforehand

Introduced in parent commit.
This commit is contained in:
Peter Melnichenko 2016-07-12 23:42:50 +03:00
parent 5ba64a4379
commit 5df72f9631

View File

@ -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()