Skip to content

Commit 943af27

Browse files
authored
Merge pull request #755 from hx2A/fix-live-coding-for-uv
ignore hidden files (such as everything in .venv)
2 parents 7a5717f + e3a47db commit 943af27

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • py5-resources/py5-module/src/py5_tools/live_coding

py5-resources/py5-module/src/py5_tools/live_coding/syncing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#
1919
# *****************************************************************************
2020
import datetime as dt
21+
import glob
2122
import inspect
2223
import os
2324
import sys
@@ -304,8 +305,8 @@ def __init__(
304305
self.getmtime = lambda f: max(
305306
(
306307
os.path.getmtime(ff)
307-
for ff in f.parent.glob("**/*")
308-
if ff.is_file()
308+
for ff_str in glob.iglob(str(f.parent / "**/*"), recursive=True)
309+
if (ff := Path(ff_str)).is_file()
309310
and not is_subdirectory(self.archive_dir, ff)
310311
and not ff.suffix in [".pyc", ".class", ".lst"]
311312
),

0 commit comments

Comments
 (0)