diff options
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py index e49ff92..1ca1713 100644 --- a/interpreter.py +++ b/interpreter.py @@ -324,8 +324,9 @@ class Data(InterpreterObject): class Man(InterpreterObject): - def __init__(self, sources, kwargs): + def __init__(self, source_subdir, sources, kwargs): InterpreterObject.__init__(self) + self.source_subdir = source_subdir self.sources = sources self.validate_sources() if len(kwargs) > 1: @@ -346,6 +347,9 @@ class Man(InterpreterObject): def get_sources(self): return self.sources + def get_source_subdir(self): + return self.source_subdir + class GeneratedObjectsHolder(InterpreterObject): def __init__(self, held_object): super().__init__() @@ -1162,7 +1166,7 @@ class Interpreter(): for a in args: if not isinstance(a, str): raise InvalidArguments('Argument %s is not a string.' % str(a)) - m = Man(args, kwargs) + m = Man(self.subdir, args, kwargs) self.build.man.append(m) return m |