diff --git a/project.py b/project.py index 6731f8599..b26e2a6ac 100644 --- a/project.py +++ b/project.py @@ -1575,6 +1575,8 @@ class Project: self._InitHooks() def _CopyAndLinkFiles(self): + if not self.worktree or not platform_utils.isdir(self.worktree): + return for copyfile in self.copyfiles: copyfile._Copy() for linkfile in self.linkfiles: