mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-16 16:52:06 +00:00
fix: exclude hidden files from asset extraction
This commit is contained in:
@@ -92,8 +92,9 @@ def iter_images():
|
|||||||
for server in ASSET_SERVER:
|
for server in ASSET_SERVER:
|
||||||
for path, folders, files in os.walk(os.path.join(AzurLaneConfig.ASSETS_FOLDER, server)):
|
for path, folders, files in os.walk(os.path.join(AzurLaneConfig.ASSETS_FOLDER, server)):
|
||||||
for file in files:
|
for file in files:
|
||||||
file = os.path.join(path, file).replace('\\', '/')
|
if not file.startswith('.'):
|
||||||
yield AssetsImage(file)
|
file = os.path.join(path, file).replace('\\', '/')
|
||||||
|
yield AssetsImage(file)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user