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:
parent
dd8b18cbae
commit
2f6e9fa4c2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user