I have a scheduled task that runs a python script.
The python script imports a bunch of functions from another python script held in the same directory.
- dir
- script.py
- functions.py
I call functions.py
with:
import functions as paxf
This has worked for the past 4 months.
Now it returns the following error:
ModuleNotFoundError: No module named 'functions'
I have not made any changes to the scripts, and am on python 3.11.
I tried updated the path location of functions
with:
import .functions
,import parent.functions
,import home.parent.functions
,
but receive the same error.
Any suggestions as to what can be going wrong?
3