From 4b5a555161d01102db86f230548e6ec37c757813 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 9 Jan 2023 22:07:53 +0200 Subject: [PATCH] [WINESYNC] Allow directories to be None --- sdk/tools/winesync/winesync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/tools/winesync/winesync.py b/sdk/tools/winesync/winesync.py index 8547ee97306..cdee060db52 100644 --- a/sdk/tools/winesync/winesync.py +++ b/sdk/tools/winesync/winesync.py @@ -100,6 +100,9 @@ class wine_sync: # root files should have a direct mapping return None + if self.module_cfg['directories'] is None: + return None + wine_dir, wine_file = os.path.split(wine_path) if wine_dir in self.module_cfg['directories']: # we have a mapping for the directory