Skip to content

Commit 99094f2

Browse files
authored
Merge pull request #13 from lucioveloso/fix_updates_0.2.x
Fixes
2 parents b6ad8b2 + f95cfe0 commit 99094f2

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lambda_toolkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.7'
1+
__version__ = '0.2.8'

lambda_toolkit/data/lambda-toolkit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"settings": {
5454
"C_LAMBDAS_DIR": "lambdas/",
55-
"C_STANDARD_FOLDER_DIR": "data/standard-folder/",
55+
"C_STANDARD_FOLDER_DIR": "data/standard-folder",
5656
"C_LAMBDAS_ZIP_DIR": ".zips",
5757
"C_LAMBDAPROXY_FUNC": "data/lambda-proxy/index.py",
5858
"C_LAMBDASTANDARD_FUNC_PY": "data/standard-lambda/index.py",

lambda_toolkit/modules/invoke.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def local_invoke(self):
3030
a = __import__("index")
3131
func = getattr(a, "lambda_handler")
3232

33-
ctx = LambdaContext(pkgutil.get_data("lambda_toolkit", os.path.join
34-
(self.conf.sett['C_LAMBDACONTEXT_FUNC_PY'], self.conf.sett['C_INVOKE_CTX_FILE'])))
35-
33+
ctx = open(os.path.join(self.conf.invoke_dir_ctx, self.conf.sett['C_INVOKE_CTX_FILE']))
3634
func(self._get_event(), ctx)
3735

3836
return self.conf

0 commit comments

Comments
 (0)