Custom commands cannot be run from cron (or other directory) if project is not on Python Path
|Reported by:||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If I wanted to create a custom command say in myproj.weather application a custom command to get_latest_weather and wanted to run that in a cron job it would fail if myproj is not on the PYTHON PATH.
I am using Python 2.6 and the imp.find_module is not finding the project path.
I can see the project module does indeed exist in sys.modules
Change History (11)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
comment:8 Changed 5 years ago by
|Triage Stage:||Accepted → Ready for checkin|