From d4166602ea9611482e40d05a7759d164ea4e6276 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 30 Apr 2019 23:06:17 -0700 Subject: [PATCH] Fix a variable --- builders/windows-builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builders/windows-builder.py b/builders/windows-builder.py index 19f94c0..4357997 100644 --- a/builders/windows-builder.py +++ b/builders/windows-builder.py @@ -174,7 +174,8 @@ class WindowsBuilder(Builder): Description=description, IgnoreFailure='yes', Program=program, Protocol='udp', Scope='any')) # Add the file association XML - with open(os.path.join(self.config_dir, 'file_associations.xml')) as assoc_file: + config_dir = os.path.dirname(self.config_path) + with open(os.path.join(config_dir, 'file_associations.xml')) as assoc_file: file_assoc = parse(assoc_file) component.append(file_assoc.getroot()) element.append(component)