Skip to content

Commit

Permalink
Add print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 25, 2024
1 parent b65e25e commit 8ad5223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions coconut/command/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def unlink(link_path):

def rm_dir_or_link(dir_to_rm):
"""Safely delete a directory without deleting the contents of symlinks."""
print("rm_dir_or_link", dir_to_rm)
if not unlink(dir_to_rm) and os.path.exists(dir_to_rm):
if WINDOWS:
try:
Expand Down
2 changes: 1 addition & 1 deletion coconut/tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def comp(path=None, folder=None, file=None, args=[], **kwargs):

def rm_path(path, allow_keep=False):
"""Delete a path."""
print("DELETING", path)
print("rm_path", path)
path = os.path.abspath(fixpath(path))
assert not base_dir.startswith(path), "refusing to delete Coconut itself: " + repr(path)
if allow_keep and get_bool_env_var("COCONUT_KEEP_TEST_FILES"):
Expand Down

0 comments on commit 8ad5223

Please sign in to comment.