WIP: pathlib support

This commit is contained in:
2023-06-23 08:51:42 +00:00
parent a5cd6a215f
commit 88d8a38444
6 changed files with 50 additions and 91 deletions

View File

@@ -1,5 +1,6 @@
from importlib.util import module_from_spec, spec_from_file_location
from os import getcwd, path, walk
from pathlib import Path
# =================================================================================
@@ -12,7 +13,7 @@ def get_py_files(src):
for root, dirs, files in walk(src):
for file in files:
if file.endswith(".py"):
py_files.append(path.join(cwd, root, file))
py_files.append(Path(f"{cwd}/{root}/{file}"))
return py_files