[2251] Use Pathlib

This commit is contained in:
David Sangrey committed 2024-06-06 19:41:10 -04:00
1 parent dd8b18cbae
commit 2f6e9fa4c2
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,7 @@ def check_for_fdev_updates(silent: bool = False, local: bool = False) -> None:
logger.info(f'File {file} not found. Writing from bundle...')
try:
for localfile in files_urls:
filepath = f"FDevIDs/{localfile[0]}"
filepath = pathlib.Path(f"FDevIDs/{localfile[0]}")
try:
shutil.copy(filepath, pathway / 'FDevIDs')
except shutil.SameFileError: