Skip to content

Commit 12eea5b

Browse files
committed
Use relative import.
1 parent 2520c08 commit 12eea5b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lambda_local/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
from __future__ import print_function
99
import argparse
10-
from main import run
1110
import sys
1211
from multiprocessing import Process
1312

13+
from .main import run
14+
1415

1516
def main():
1617
args = parse_args()
@@ -46,5 +47,6 @@ def parse_args():
4647

4748
return parser.parse_args()
4849

50+
4951
if __name__ == "__main__":
5052
main()

lambda_local/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
import timeit
1414
from botocore.vendored.requests.packages import urllib3
1515

16-
import event
17-
import context
18-
from timeout import time_limit
19-
from timeout import TimeoutException
16+
from . import event
17+
from . import context
18+
from .timeout import time_limit
19+
from .timeout import TimeoutException
2020

2121
logging.basicConfig(stream=sys.stdout,
2222
level=logging.INFO,

0 commit comments

Comments
 (0)