Skip to content

Commit

Permalink
Because people are very creative in working around limitations based …
Browse files Browse the repository at this point in the history
…on good faith.
  • Loading branch information
jpakkane committed Oct 24, 2017
1 parent a3da9f7 commit c178a57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mesonbuild/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,12 @@ def func_project(self, node, args, kwargs):
if self.subproject in self.build.projects:
raise InvalidCode('Second call to project().')
if not self.is_subproject() and 'subproject_dir' in kwargs:
self.subproject_dir = kwargs['subproject_dir']
spdirname = kwargs['subproject_dir']
if '/' in spdirname or '\\' in spdirname:
raise InterpreterException('Subproject_dir must not contain a path segment.')
if spdirname.startswith('.'):
raise InterpreterException('Subproject_dir must not begin with a period.')
self.subproject_dir = spdirname

if 'meson_version' in kwargs:
cv = coredata.version
Expand Down

0 comments on commit c178a57

Please sign in to comment.