diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index ee8bffa41f..234a111a4d 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -986,7 +986,7 @@ def build_cython_components(self, arch): '-c', 'import site; print("\\n".join(site.getsitepackages()))') site_packages_dirs = site_packages_dirs.stdout.decode('utf-8').split('\n') if 'PYTHONPATH' in env: - env['PYTHONPATH'] = env + ':{}'.format(':'.join(site_packages_dirs)) + env['PYTHONPATH'] = env['PYTHONPATH'] + ':{}'.format(':'.join(site_packages_dirs)) else: env['PYTHONPATH'] = ':'.join(site_packages_dirs)