From 9f6259c02cc0ff68738fe7d2d1367d23fee4eb12 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 17 Jul 2020 14:39:23 +0200 Subject: [setup.py] create target directory if needed --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- cgit v1.2.3