I have a lambda deployment package containing two python files, file1.py and file2.py. I need file1.py to call a function from file2.py and here's how I did it.
from file2 import function1
variable1 = function1()
print(variable1)
The above method works when I am in my virtual environment, but when I upload the deployment package to Lambda, I am getting a None
result from function1.
PS: file2.py works perfectly and function1 can return the desired output when I run it individually.