We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d403024 commit 1fe7a3dCopy full SHA for 1fe7a3d
1 file changed
aws_lambda/aws_lambda.py
@@ -325,6 +325,9 @@ def build(
325
env_path = os.environ.get('VIRTUAL_ENV')
326
en_core_web_sm_path = os.path.join(
327
env_path, 'lib/python3.6/site-packages/en_core_web_sm')
328
+ if not os.path.exists(en_core_web_sm_path):
329
+ en_core_web_sm_path = os.path.join(
330
+ env_path, 'lib/python3.6/dist-packages/en_core_web_sm')
331
en_core_web_sm_path_temp = os.path.join(path_to_temp,
332
'en_core_web_sm')
333
shutil.copytree(en_core_web_sm_path, en_core_web_sm_path_temp)
0 commit comments