aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py
index f2b492b..e4c4ec6 100644
--- a/dotfiles/core.py
+++ b/dotfiles/core.py
@@ -211,6 +211,9 @@ class Dotfiles(object):
if pkg_name in self.packages:
home = os.path.join(self.homedir, sub_dir)
target = self._fqpn(file, pkg_name=pkg_name)
+ dirname = os.path.dirname(target)
+ if not os.path.exists(dirname):
+ os.makedirs(dirname)
else:
home = self.homedir
target = self._fqpn(file)