aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 8392c24..fe22238 100755
--- a/setup.py
+++ b/setup.py
@@ -175,6 +175,10 @@ def install_target(target, quiet):
if not quiet:
print("Installing", instruction[0], "to", instruction[1])
+
+ # make sure the target directory exists
+ os.makedirs(os.path.dirname(instruction[1]), exist_ok=True)
+
try:
os.symlink(cwd + "/" + instruction[0], instruction[1])
except Exception as e: