Skip to content

Commit

Permalink
Make cache check Windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Dec 30, 2024
1 parent 4e18340 commit fadfb70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48333,9 +48333,10 @@ def drop_file(target):
cache_dir = tmp_cache_dir()
if os.path.isdir(cache_dir):
# This check can be Windows only, lazy deletes are fine on Linux/macOS
while cachement.running:
logging.warning("Waiting for caching to stop before deleting cache directory…")
time.sleep(0.2)
if sys.platform == "win32":
while tauon.cachement.running:
logging.warning("Waiting for caching to stop before deleting cache directory…")
time.sleep(0.2)
logging.info("Clearing tmp cache")
shutil.rmtree(cache_dir)

Expand Down

0 comments on commit fadfb70

Please sign in to comment.