Prevent slashes in generated names.

pull/15/head
Jussi Pakkanen 12 years ago
parent 78fd215dc8
commit 0f60793b15
  1. 2
      interpreter.py

@ -73,6 +73,8 @@ class Generator(InterpreterObject):
raise InvalidArguments('"name_rule" keyword argument must be a string.')
if not '@BASENAME@' in rule:
raise InvalidArguments('"name_rule" must contain @BASENAME@.')
if '/' in rule:
raise InvalidArguments('"name_rule" must not contain a slash.')
self.name_rule = rule
def get_base_outname(self, inname):

Loading…
Cancel
Save