Skip to content

Commit

Permalink
Update function includes.
Browse files Browse the repository at this point in the history
Ensure that file paths are resolved from the script's location rather than the caller's.
  • Loading branch information
jamesiarmes committed Nov 29, 2020
1 parent fd8281e commit 15be8af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/s3_decompression.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# frozen_string_literal: true

load '../vendor/bundle/bundler/setup.rb'
load "#{__dir__}/../vendor/bundle/bundler/setup.rb"

require 'aws-sdk-s3'
require 'aws-xray-sdk/lambda'
require 'logger'
require 'zlib'
require '../lib/config'
require '../lib/handler'
require "#{__dir__}/../lib/config"
require "#{__dir__}/../lib/handler"

$handler = Handler.new(
config: Config.from_env,
Expand Down

0 comments on commit 15be8af

Please sign in to comment.