Fix a variable

This commit is contained in:
Raoul Snyman 2019-04-30 23:06:17 -07:00
parent 6dd78d9b40
commit d4166602ea
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ class WindowsBuilder(Builder):
Description=description, IgnoreFailure='yes', Description=description, IgnoreFailure='yes',
Program=program, Protocol='udp', Scope='any')) Program=program, Protocol='udp', Scope='any'))
# Add the file association XML # 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) file_assoc = parse(assoc_file)
component.append(file_assoc.getroot()) component.append(file_assoc.getroot())
element.append(component) element.append(component)