From 73657fe3b18d9f3ce823d1b0bce52d73a7a333c3 Mon Sep 17 00:00:00 2001 From: Ben Hagen Date: Mon, 2 May 2016 22:00:36 +0200 Subject: [PATCH] mpath of a six module can be an empty list --- tools/templates/{{ cookiecutter.project_name }}-ios/main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/templates/{{ cookiecutter.project_name }}-ios/main.m b/tools/templates/{{ cookiecutter.project_name }}-ios/main.m index 017a930..5ade694 100644 --- a/tools/templates/{{ cookiecutter.project_name }}-ios/main.m +++ b/tools/templates/{{ cookiecutter.project_name }}-ios/main.m @@ -119,7 +119,7 @@ void load_custom_builtin_importer() { " def find_module(self, fullname, mpath=None):\n" \ " if '.' not in fullname:\n" \ " return\n" \ - " if mpath is None:\n" \ + " if not mpath:\n" \ " return\n" \ " part = fullname.rsplit('.')[-1]\n" \ " fn = join(mpath[0], '{}.so'.format(part))\n" \