Skip to content

Commit e6b8260

Browse files
committed
cleanup
1 parent cc15245 commit e6b8260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shiny/ui/_include_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,10 @@ def create_include_dependency(
215215
def maybe_copy_files(path: Path | str, include_files: bool) -> tuple[str, str]:
216216
hash = get_hash(path, include_files)
217217

218+
# To avoid unnecessary work when the same file is included multiple times,
219+
# use a directory scoped by a hash of the file.
218220
tmpdir = os.path.join(tempfile.gettempdir(), "shiny_include_files", hash)
219221
path_dest = os.path.join(tmpdir, os.path.basename(path))
220-
print("tmpdir, path_dest: ", tmpdir, path_dest)
221222

222223
# Since the hash/tmpdir should represent all the files in the path's directory,
223224
# we can simply return here

0 commit comments

Comments
 (0)