1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

[2251] Use Pathlib

This commit is contained in:
David Sangrey 2024-06-06 19:41:10 -04:00
parent dd8b18cbae
commit 2f6e9fa4c2
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

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: