Skip to content

Commit b78a398

Browse files
committed
Merge remote-tracking branch 'Birne94/issue-120-fix-build-cwd' into k8a
nficano#121
2 parents aad2dad + 53668eb commit b78a398

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

aws_lambda/aws_lambda.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,17 @@ def build(
336336

337337
files = []
338338
for filename in os.listdir(src):
339-
if os.path.isfile(filename):
339+
abs_filename = os.path.join(src, filename)
340+
if os.path.isfile(abs_filename):
340341
if filename == '.DS_Store':
341342
continue
342343
if filename == config_file:
343344
continue
344345
print('Bundling: %r' % filename)
345-
files.append(os.path.join(src, filename))
346+
files.append(abs_filename)
346347
elif os.path.isdir(filename) and filename in source_directories:
347348
print('Bundling directory: %r' % filename)
348-
files.append(os.path.join(src, filename))
349+
files.append(abs_filename)
349350

350351
# "cd" into `temp_path` directory.
351352
os.chdir(path_to_temp)

0 commit comments

Comments
 (0)