if emitter is a list of emitters, take the first and only emitter
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4164 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
2c161a5cde
commit
c0ce38d877
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ def check_requirement(ctx, func, trigger):
|
|||
def add_file_to_emitter(env, emitter_name, file):
|
||||
try:
|
||||
original_emitter = env[emitter_name]
|
||||
if type(original_emitter) == list:
|
||||
original_emitter = original_emitter[0]
|
||||
except KeyError:
|
||||
original_emitter = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue