Python relative imports in AWS Lambda fail with attempted relative import with no known parent package
In AWS Lambda if I attempt an explicit relative import like this
.
βββ lambda_file.py
βββ example.py
# Version: 0.1 (2025-01-18) | |
# License: MIT, use at your own risk | |
# | |
# This script disables the Lenovo-installed "Tobii experience" software and "nahimic" software. | |
# Tested on a Lenovo Legion Pro 5 (82WM) with Windows 11 24H2. | |
# Run it with `powershell.exe -noprofile -executionPolicy Bypass -File badlenovo.ps1` | |
# Following this script, you should be able to uninstall the "Tobii experience" app from the control panel (appwiz.cpl) | |
# | |
# After major updates, you may need to re-run this script. |
import {useEffect} from "react"; | |
/** | |
* A hook that runs an async function on mount with support for cancellation. | |
* | |
* If unmounting before the async function completes, the cleanup function will be called. | |
* @param fn {function} A function that takes a 'cancelled' function as its only argument. | |
* @param inputs {array?} An optional array of inputs to pass to useEffect. | |
* @param cleanup {function?} An optional cleanup function to run on unmount. | |
* |