Why does Python find my CSV in the editor but not when I launch the script elsewhere?
TechnologyMy script opens `names.csv` with a relative path. It works when I run it from the project folder in my editor. Launching the same script from another folder produces FileNotFoundError, even though the CSV is still beside the script.
A friend wants to copy the CSV into every folder from which we might launch the program. I'd rather understand where Python is looking. Is the script's location different from its current working directory for this purpose? The input list should have one understood home, not a growing collection of copies that drift apart.