Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion deploylambda/deploylambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ def create_venv_zip(function_name, path, extra_path=''):
raise Exception('required config file not found: {}{}.py'.format(path, function_name))
repo_files = os.listdir(path)
for repo_file in repo_files:
if repo_file.startwith(function) and not repo_file.endswith('.pyc'):
if repo_file.endswith('.pyc'):
continue
if os.path.isdir(os.path.join(path, repo_file)):
continue
if repo_file.startswith(function):
zf.write(repo_file)

for subpath in extra_paths:
Expand Down