fix tar initialization

This commit is contained in:
Ruben Fiszel
2023-08-14 16:16:36 +02:00
parent e1b4f0a832
commit 4b8d38d077
4 changed files with 63 additions and 51 deletions

View File

@@ -334,7 +334,7 @@ def set_variable(path: str, value: str) -> None:
def get_state_path() -> str:
state_path = os.environ.get("WM_STATE_PATH_NEW")
state_path = os.environ.get("WM_STATE_PATH_NEW") or os.environ.get("WM_STATE_PATH")
if state_path is None:
raise Exception("State path not found")
return state_path