Skip to content

Commit 8e39072

Browse files
committed
dist: don't search same directory for dependencies more than once
1 parent 7711757 commit 8e39072

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

direct/src/dist/commands.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,10 @@ def copy_with_dependencies(self, source_path, target_path, search_path):
10801080
source_dir = os.path.dirname(source_path)
10811081
target_dir = os.path.dirname(target_path)
10821082
base = os.path.basename(target_path)
1083-
self.copy_dependencies(target_path, target_dir, search_path + [source_dir], base)
1083+
1084+
if source_dir not in search_path:
1085+
search_path = search_path + [source_dir]
1086+
self.copy_dependencies(target_path, target_dir, search_path, base)
10841087

10851088
def copy_dependencies(self, target_path, target_dir, search_path, referenced_by):
10861089
""" Copies the dependencies of target_path into target_dir. """

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy