фикс сборщика манифеста
This commit is contained in:
+7
-1
@@ -17,6 +17,10 @@ IGNORED_TOP_LEVEL_DIRS = {
|
|||||||
"Screenshots",
|
"Screenshots",
|
||||||
"WTF",
|
"WTF",
|
||||||
}
|
}
|
||||||
|
IGNORED_DIRS_ANYWHERE = {
|
||||||
|
".git",
|
||||||
|
".moonwell_launcher",
|
||||||
|
}
|
||||||
|
|
||||||
ENV_VAR_NAME = "WOW_HOME"
|
ENV_VAR_NAME = "WOW_HOME"
|
||||||
|
|
||||||
@@ -36,7 +40,9 @@ def sha256_file(path: Path, chunk_size: int = 1024 * 1024) -> str:
|
|||||||
def is_ignored(rel_path: Path) -> bool:
|
def is_ignored(rel_path: Path) -> bool:
|
||||||
if not rel_path.parts:
|
if not rel_path.parts:
|
||||||
return False
|
return False
|
||||||
return rel_path.parts[0] in IGNORED_TOP_LEVEL_DIRS
|
if rel_path.parts[0] in IGNORED_TOP_LEVEL_DIRS:
|
||||||
|
return True
|
||||||
|
return any(part in IGNORED_DIRS_ANYWHERE for part in rel_path.parts[:-1])
|
||||||
|
|
||||||
|
|
||||||
def load_dotenv(env_path: Path) -> dict[str, str]:
|
def load_dotenv(env_path: Path) -> dict[str, str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user