Skip to content

Commit 77386f3

Browse files
authored
Merge pull request #3 from matt-land/master
Merge pull request #2 from matt-land/feature/allowconfigs
2 parents cb690de + 50b4209 commit 77386f3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

deploylambda/deploylambda.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ def create_venv_zip(function_name, path, extra_path=''):
5656
raise Exception('required config file not found: {}{}.py'.format(path, function_name))
5757
repo_files = os.listdir(path)
5858
for repo_file in repo_files:
59-
if repo_file.startwith(function) and not repo_file.endswith('.pyc'):
59+
if repo_file.endswith('.pyc'):
60+
continue
61+
if os.path.isdir(os.path.join(path, repo_file)):
62+
continue
63+
if repo_file.startswith(function):
6064
zf.write(repo_file)
6165

6266
for subpath in extra_paths:

0 commit comments

Comments
 (0)