Skip to content

Commit 74c931e

Browse files
committed
Removing prints
1 parent 8ae6460 commit 74c931e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

shiny/ui/_include_helpers.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ def check_path(path: Path | str) -> Path:
197197
def create_include_dependency(
198198
name: str, path: str, include_files: bool
199199
) -> tuple[HTMLDependency, str]:
200-
print("create include: ", name, os.path.dirname(path))
201200
dep = HTMLDependency(
202201
name,
203202
DEFAULT_VERSION,
@@ -215,42 +214,26 @@ def create_include_dependency(
215214

216215
def maybe_copy_files(path: Path | str, include_files: bool) -> tuple[str, str]:
217216
hash = get_hash(path, include_files)
218-
print("path: ", path, "Hash: ", hash)
219217

220218
tmpdir = os.path.join(tempfile.gettempdir(), f"shiny_include_{hash}")
221219
path_dest = os.path.join(tmpdir, os.path.basename(path))
222-
print("tmpdir: ", tmpdir, "path_dest: ", path_dest)
223220

224221
# To avoid unnecessary work when the same file is included multiple times,
225222
# use a directory scoped by a hash of the file.
226223
# Since the hash/tmpdir should represent all the files in the path's directory,
227224
# we can check if it exists to determine if we have a cache hit
228225
if os.path.exists(path_dest):
229-
print("Path already exists:", path_dest)
230226
return path_dest, hash
231227

232228
# Otherwise, make sure we have a clean slate
233229
if os.path.exists(tmpdir):
234-
print("Folder already exists, but not files, removing.")
235230
shutil.rmtree(tmpdir)
236231

237232
if include_files:
238-
print(
239-
"Copying all included files from: ",
240-
path,
241-
" with perms: ",
242-
oct(os.stat(path).st_mode),
243-
)
244233
shutil.copytree(os.path.dirname(path), tmpdir)
245234

246235
else:
247236
os.makedirs(tmpdir, exist_ok=True)
248-
print(
249-
"Copying files from: ",
250-
path,
251-
" with perms: ",
252-
oct(os.stat(path).st_mode),
253-
)
254237
shutil.copy(path, path_dest)
255238

256239
return path_dest, hash

0 commit comments

Comments
 (0)