WIP: pathlib support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user