aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index 66059ac..60b8150 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -149,7 +149,7 @@ class Interpreter():
raise InvalidArguments('Line %d: Argument %s is not a string.' % str(a))
name = args[0]
sources = args[1:]
- if name in self.target:
+ if name in self.targets:
raise InvalidCode('Line %d, tried to create executable "%s", but a build target of that name already exists.' % (node.lineno(), name))
exe = Executable(name, sources)
self.targets[name] = exe